Mule - Error Handling -
in mule i'm using catch exception strategy referenced "complex" flow. put jdbc component in exception strategy, update table record in case of error how can access exception stack trace log on table? checked payload @ beginning of exception strategy , of type org.apache.commons.httpclient.methods.postmethod
in fact got error during http call.
in exception strategy exception not available in payload. available in exceptionpayload variable of message object.
use
exception exception = (exception)message.getexceptionpayload().getexception();
this give exceptionpaylaod object getexception() method provides exception object.
to stack trace use following.
stacktraceelement[] ste = exception.getcause().getstacktrace();
from there can continue need.
hope helps.
Comments
Post a Comment