com.ibm.wsspi.sibx.mediation

Class MediationException

  1. java.lang.Object
  2. extended byjava.lang.Throwable
  3. extended byjava.lang.Exception
  4. extended bycom.ibm.wsspi.sibx.mediation.MediationException
All implemented interfaces:
com.ibm.ws.sibx.common.Loggable, java.io.Serializable
Direct known subclasses:
MediationBusinessException, MediationConfigurationException

  1. public class MediationException
  2. extends java.lang.Exception
  3. implements com.ibm.ws.sibx.common.Loggable
Base exception for all mediation primitive exceptions. Mediation primitives may throw a defined set of exceptions which all extend this exception class.

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.

See Also:
Serialized Form

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
$sccsid
  1. static
  2. java.lang.String
COPYRIGHT

Constructor Summary

Modifier Constructor and Description
  1. protected
MediationException()
Default constructor explicitly defined as protected.
  1. protected
MediationException(java.lang.String message)
Constructor which takes a message as the only parameter.
  1. protected
MediationException(java.lang.String message,java.lang.Throwable cause)
Constructor which takes a message, and a causal exception.
  1. protected
MediationException(java.lang.Throwable cause)
Constructor which takes a causal exception.

Method Summary

Modifier and Type Method and Description
  1. java.lang.Object
getExceptionMetadata()
  1. java.lang.Object
getLoggingMetadata()
  1. void
printStackTrace(java.io.PrintStream s)
  1. void
printStackTrace(java.io.PrintWriter s)
  1. void
setExceptionMetadata(java.lang.Object exceptionMetadata)
  1. void
setLoggingMetadata(java.lang.Object loggingMetadata)
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

  1. public static final java.lang.String COPYRIGHT
See Also:

$sccsid

  1. public static final java.lang.String $sccsid
See Also:

Constructor Detail

MediationException

  1. protected MediationException()
Default constructor explicitly defined as protected.

MediationException

  1. protected MediationException(java.lang.String message)
Constructor which takes a message as the only parameter.
Parameters:
message - the exception message

MediationException

  1. protected MediationException(java.lang.String message,
  2. java.lang.Throwable cause)
Constructor which takes a message, and a causal exception.
Parameters:
message - the exception message
cause - the causal exception

MediationException

  1. protected MediationException(java.lang.Throwable cause)
Constructor which takes a causal exception.
Parameters:
cause - the causal exception

Method Detail

getExceptionMetadata

  1. public java.lang.Object getExceptionMetadata( )
Returns:
Returns the exception metadata.

setExceptionMetadata

  1. public void setExceptionMetadata( java.lang.Object exceptionMetadata)
Parameters:
exceptionMetadata - The exception metadata to set.

getLoggingMetadata

  1. public java.lang.Object getLoggingMetadata( )
Specified by:
getLoggingMetadata in interface com.ibm.ws.sibx.common.Loggable
Returns:
Returns the logging metadata.

setLoggingMetadata

  1. public void setLoggingMetadata( java.lang.Object loggingMetadata)
Specified by:
setLoggingMetadata in interface com.ibm.ws.sibx.common.Loggable
Parameters:
loggingMetadata - The logging metadata to set.

printStackTrace

  1. public void printStackTrace(java.io.PrintWriter s)
Overrides:
printStackTrace in class java.lang.Throwable
See Also:
Throwable.printStackTrace(java.io.PrintWriter)

printStackTrace

  1. public void printStackTrace(java.io.PrintStream s)
Overrides:
printStackTrace in class java.lang.Throwable
See Also:
Throwable.printStackTrace(java.io.PrintStream)