Whats the use of Message.getThrowable?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Whats the use of Message.getThrowable?

johndament
Hi

I noticed in a few of the custom Message implementations, the getThrowable method always returns null (take for reference MapMessage).  In code such as the slf4j bridge or even AbstractLogger there's explicit calls to this method.  So the fact that the throwable is always null seems odd to me.  If I were to subclass MapMessage to add support for actual Throwable, would there be any downside?

John

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]