public class MediationException
extends java.lang.Exception
implements com.ibm.ws.sibx.common.Loggable
When a mediation primitive throws an exception from the
mediate
method, the exception is caught by the flow engine. The engine will determine
if the mediation primitive has a failure terminal defined, and if so it will
cause the invocation of any flow elements wired to the failure terminal. If
the mediation primitive does not define a failure terminal, or the failure
terminal is not wired, then the exception is propagated and will cause the
failure of the whole flow.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
$sccsid |
static java.lang.String |
COPYRIGHT |
Modifier | Constructor and Description |
---|---|
protected |
MediationException()
Default constructor explicitly defined as protected.
|
protected |
MediationException(java.lang.String message)
Constructor which takes a message as the only parameter.
|
protected |
MediationException(java.lang.String message,
java.lang.Throwable cause)
Constructor which takes a message, and a causal exception.
|
protected |
MediationException(java.lang.Throwable cause)
Constructor which takes a causal exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getExceptionMetadata() |
java.lang.Object |
getLoggingMetadata() |
void |
printStackTrace(java.io.PrintStream s) |
void |
printStackTrace(java.io.PrintWriter s) |
void |
setExceptionMetadata(java.lang.Object exceptionMetadata) |
void |
setLoggingMetadata(java.lang.Object loggingMetadata) |
public static final java.lang.String COPYRIGHT
public static final java.lang.String $sccsid
protected MediationException()
protected MediationException(java.lang.String message)
message
- the exception messageprotected MediationException(java.lang.String message, java.lang.Throwable cause)
message
- the exception messagecause
- the causal exceptionprotected MediationException(java.lang.Throwable cause)
cause
- the causal exceptionpublic java.lang.Object getExceptionMetadata()
public void setExceptionMetadata(java.lang.Object exceptionMetadata)
exceptionMetadata
- The exception metadata to set.public java.lang.Object getLoggingMetadata()
getLoggingMetadata
in interface com.ibm.ws.sibx.common.Loggable
public void setLoggingMetadata(java.lang.Object loggingMetadata)
setLoggingMetadata
in interface com.ibm.ws.sibx.common.Loggable
loggingMetadata
- The logging metadata to set.public void printStackTrace(java.io.PrintWriter s)
printStackTrace
in class java.lang.Throwable
Throwable.printStackTrace(java.io.PrintWriter)
public void printStackTrace(java.io.PrintStream s)
printStackTrace
in class java.lang.Throwable
Throwable.printStackTrace(java.io.PrintStream)