java - Mule: getting a hold of the exception message -
I have a default catch exception in the haze, and I'm trying to gain access to the exception message: # [Exception]
It does not seem to work, and I think I'm trying to use the wrong variable? I'm trying to use this logger and also run a custom component which runs in an exception message (as a string).
Thank you,
you can # [stop the exception ]
as
& lt; Option-exception-strategy & gt; & Lt; The catch-exception-strategy when = "exception exceptions (com.company.BusinessException)" & gt; & Lt ;! - [1] - & gt; & Lt; JMS: Outbound-Endpoint Qi = "Dead Letter" & gt; & Lt; JMS: transaction action = "ALWAYS_JOIN" /> & Lt; / Jms: outbound-endpoint> & Lt; / Catch-exception-strategy & gt; & Lt; Rollback-exception-strategy when = "exception exceptions (com.company.NonBusinessException)" & gt; & Lt ;! - [2] - & gt; & Lt; Logger level = "error" message = "payload unsuccessful: # [payload]" /> & Lt; / Rollback-exception-strategy & gt; & Lt; / Likes-exception-strategy & gt;
More details
Comments
Post a Comment