Home » synapse-1.2-src » org.apache.synapse » [javadoc | source]
abstract public class: FaultHandler [javadoc | source]

Direct Known Subclasses:
    AddressEndpoint, WSDLEndpoint, IndirectEndpoint, MediatorFaultHandler, DefaultEndpoint

This is an abstract class that handles an unexpected error during Synapse mediation, but looking at the stack of registered FaultHanders and invoking on them as appropriate. Sequences and Endpoints would be Synapse entities that handles faults. If such an entity is unable to handle an error condition, then a SynapseException should be thrown, which triggers this fault handling logic.
Method from org.apache.synapse.FaultHandler Summary:
getStackTrace,   handleFault,   handleFault,   onFault
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.synapse.FaultHandler Detail:
 public static String getStackTrace(Throwable aThrowable) 
    Get the stack trace into a String
 public  void handleFault(MessageContext synCtx) 
 public  void handleFault(MessageContext synCtx,
    Exception e) 
    Extract and set ERROR_MESSAGE and ERROR_DETAIL to the message context from the Exception
 abstract public  void onFault(MessageContext synCtx)
    This will be executed to handle any Exceptions occurred within the Synapse environment.