com.ibm.bpe.api
Class RuntimeFaultException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.ibm.bpe.api.ProcessException
              extended bycom.ibm.bpe.api.BpelException
                  extended bycom.ibm.bpe.api.RuntimeFaultException
All Implemented Interfaces:
java.io.Serializable

public class RuntimeFaultException
extends BpelException

RuntimeFaultException wraps all runtime failures that can happen during the execution of BPEL processes, for example, when executing a script activity or when evaluating a transition condition.

A RuntimeFaultException can be handled by a catch-all activity or by a catch activity that catches "wpc:runtimeFailure".

See Also:
Serialized Form

Field Summary
protected static java.lang.String FAULT_NAME
          The ncname of the system fault.
 
Fields inherited from class com.ibm.bpe.api.BpelException
NAMESPACE_BPEL, NAMESPACE_WPC
 
Constructor Summary
RuntimeFaultException(java.lang.String key, java.lang.Object[] vars)
          Constructs an exception object with the specified message key and remembers the values of the message variables passed.
RuntimeFaultException(java.lang.String key, java.lang.Object[] vars, java.lang.Throwable cause)
          Constructs an exception object with the specified message key and exception and remembers the values of the message variables passed.
RuntimeFaultException(java.lang.String message, java.lang.Throwable throwable)
          Constructs an exception object from the error message and the exception passed.
 
Method Summary
 java.lang.String getFaultName()
          Returns the fault name.
 int getNamespace()
          Returns the namespace identifier.
 
Methods inherited from class com.ibm.bpe.api.ProcessException
getCause, getMessage, getMessage, getMessageKey, getMessageVariables, getRootCause, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FAULT_NAME

protected static final java.lang.String FAULT_NAME
The ncname of the system fault.

See Also:
Constant Field Values
Constructor Detail

RuntimeFaultException

public RuntimeFaultException(java.lang.String message,
                             java.lang.Throwable throwable)
Constructs an exception object from the error message and the exception passed.

Parameters:
message - The error message.
throwable - The exception that was thrown.

RuntimeFaultException

public RuntimeFaultException(java.lang.String key,
                             java.lang.Object[] vars)
Constructs an exception object with the specified message key and remembers the values of the message variables passed. The error message can thus localize the cause of the error.

Parameters:
key - The message key.
vars - The values of the message variables. Can be an empty array. If the array contains objects, they must be Serializable.

RuntimeFaultException

public RuntimeFaultException(java.lang.String key,
                             java.lang.Object[] vars,
                             java.lang.Throwable cause)
Constructs an exception object with the specified message key and exception and remembers the values of the message variables passed. The error message can thus localize the cause of the error.

Parameters:
key - The message key.
vars - The values of the message variables. Can be an empty array. If the array contains objects, they must be Serializable.
cause - The exception that was thrown.
Method Detail

getFaultName

public java.lang.String getFaultName()
Returns the fault name.

Specified by:
getFaultName in class BpelException
Returns:
String - The fault name.

getNamespace

public int getNamespace()
Returns the namespace identifier.

Returns:
int - The namespace identifier.