Package org.apache.synapse
Class SynapseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.synapse.SynapseException
-
- All Implemented Interfaces:
Serializable
public class SynapseException extends RuntimeException
Runtime exception for Synapse code to throw
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynapseException(String string)SynapseException(String msg, Throwable e)SynapseException(String msg, Throwable cause, SynapseLog synLog)Convenience constructor that allows to log and throw the exception in a single instruction.SynapseException(String msg, SynapseLog synLog)Convenience constructor that allows to log and throw the exception in a single instruction.SynapseException(Throwable t)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
SynapseException
public SynapseException(String string)
-
SynapseException
public SynapseException(Throwable t)
-
SynapseException
public SynapseException(String msg, SynapseLog synLog)
Convenience constructor that allows to log and throw the exception in a single instruction. It will callSynapseLog.logSynapseException(String, Throwable)to log the error.- Parameters:
msg-synLog-
-
SynapseException
public SynapseException(String msg, Throwable cause, SynapseLog synLog)
Convenience constructor that allows to log and throw the exception in a single instruction. It will callSynapseLog.logSynapseException(String, Throwable)to log the error.- Parameters:
msg-cause-synLog-
-
-