Integration Server 10.3 | Built-In Services Reference Guide | Flow Folder | Summary of Elements in this Folder | pub.flow:getLastFailureCaught
 
pub.flow:getLastFailureCaught
WmPublic. Returns information about the last failure that was caught by a CATCH step.
Input Parameters
None.
Output Parameters
failure
Object The last failure caught by a CATCH step. The failure parameter is null if no failure have been caught.
failureMessage
String Conditional. The message associated with the failure. The service returns a failureName output parameter only if a failure has been caught.
failureName
String Conditional. The class name of the exception. The service returns a failureMessage output parameter only if a failure has been caught.
Usage Notes
When a CATCH step can handle multiple failures, use the pub.flow:getLastFailureCaught service to determine which failure the step caught.
If you want to rethrow a caught failure, use the pub.flow:getLastFailureCaught service to determine which failure the CATCH step caught and then use an EXIT step configured to signal failure to rethrow the failure.
The pub.flow:getLastFailureCaught service does not have to be executed within a CATCH step. Invoking the service any time after a failure has been caught returns the caught failure.