public abstract class FaultHandler extends Object
Constructor and Description |
---|
FaultHandler() |
Modifier and Type | Method and Description |
---|---|
static String |
getStackTrace(Throwable aThrowable)
Get the stack trace into a String
|
void |
handleFault(MessageContext synCtx) |
void |
handleFault(MessageContext synCtx,
Exception e)
Extract and set ERROR_MESSAGE and ERROR_DETAIL to the message context from the Exception
|
abstract void |
onFault(MessageContext synCtx)
This will be executed to handle any Exceptions occurred within the Synapse environment.
|
public void handleFault(MessageContext synCtx)
public void handleFault(MessageContext synCtx, Exception e)
synCtx
- the message contexte
- the exception encounteredpublic abstract void onFault(MessageContext synCtx)
synCtx
- SynapseMessageContext of which the fault occured message comprisesSynapseException
- in case there is a failure in the fault executionCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.