public abstract class FaultHandler
extends java.lang.Object
Constructor and Description |
---|
FaultHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
executeExtendedSynapseHandlerOnFault(MessageContext synCtx)
Execute the ExtendedSynapseHandler in the error flow.
|
static java.lang.String |
getStackTrace(java.lang.Throwable aThrowable)
Get the stack trace into a String
|
void |
handleFault(MessageContext synCtx) |
void |
handleFault(MessageContext synCtx,
java.lang.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, java.lang.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 executionpublic static java.lang.String getStackTrace(java.lang.Throwable aThrowable)
aThrowable
- protected void executeExtendedSynapseHandlerOnFault(MessageContext synCtx)
synCtx
- Synapse Message ContextCopyright © 2005-2020 Apache Software Foundation. All Rights Reserved.