IBM WebSphere Application ServerTM
Release 8

com.ibm.bpe.api
Class StandardFaultException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ibm.bpe.api.ProcessException
              extended by com.ibm.bpe.api.BpelException
                  extended by com.ibm.bpe.api.StandardFaultException
All Implemented Interfaces:
java.io.Serializable

public class StandardFaultException
extends BpelException

Super class for all BPEL standard faults such as bpws:forceTermination.

Since:
5.1
See Also:
Serialized Form

Field Summary
protected  java.lang.String _faultName
          BPEL standard fault name.
protected  int _namespace
          The namespace of the standard fault (bpel or wpc)
static java.lang.String ALL_JOIN_FAILURE
          String constant for wpc:allJoinFailure.
static java.lang.String COMPENSATE_FAILURE
          String constant for wpc:compensateFailure
static java.lang.String COMPLETION_CONDITION_FAILURE
          String constant for bpws:completionConditionFailure.
static java.lang.String CONFLICTING_RECEIVE
          String constant for bpws:conflictingReceive fault.
static java.lang.String CONFLICTING_RECEIVE1
          String constant for conflictingReceive1 message.
static java.lang.String CONFLICTING_RECEIVE2
          String constant for conflictingReceive2 message.
static java.lang.String CONFLICTING_RECEIVE3
          String constant for conflictingReceive3 message.
static java.lang.String CONFLICTING_REQUEST
          String constant for bpws:conflictingRequest fault.
static java.lang.String COPYRIGHT
           
static java.lang.String CORRELATION_VIOLATION
          String constant for bpws:correlationViolation fault.
static java.lang.String ENDPOINT_NOT_FOUND
          String constant for wpc:endpointNotFound.
static java.lang.String FORCED_TERMINATION
          String constant for bpws:forcedTermination fault.
static java.lang.String INVALID_BRANCH_CONDITION
          String constant for bpws:invalidBranchCondition.
static java.lang.String INVALID_EXPRESSION_VALUE
          String constant for bpws:forEachCounterError.
static java.lang.String INVALID_REPLY
          String constant for bpws:invalidReply fault.
static java.lang.String IOR_SPLIT_FAILURE
          String constant for wpc:iorSplitFailure.
static java.lang.String JOIN_FAILURE
          String constant for bpws:joinFailure fault.
static java.lang.String MISMATCHED_ASSIGNMENT_FAILURE
          String constant for bpws:mismatchedAssignmentFailure fault.
static java.lang.String MISSING_REPLY
          String constant for bpws:missingReply fault.
static java.lang.String REPEATED_COMPENSATION
          String constant for bpws:repeatedCompensation fault.
static java.lang.String SCOPE_INITIALIZATION_FAILURE
          String constant for bpws:scopeInitializationFailure.
static java.lang.String SELECTION_FAILURE
          String constant for bpws:selectionFailure fault.
static java.lang.String SERVICE_TERMINATED
          String constant for wpc:serviceTerminated failure.
static java.lang.String SPLIT_FAILURE
          String constant for wpc:splitFailure.
static java.lang.String TIMEOUT
          String constant for wpc:timeout failure.
static java.lang.String UNINITIALIZED_PARTNER_ROLE
          String constant for bpws:uninitializedPartnerRole fault.
static java.lang.String UNINITIALIZED_VARIABLE
          String constant for bpws:uninititializedVariable fault.
 
Fields inherited from class com.ibm.bpe.api.BpelException
NAMESPACE_BPEL, NAMESPACE_WPC
 
Fields inherited from class com.ibm.bpe.api.ProcessException
_catalog, _cause, _id, _key, _message, _vars
 
Method Summary
static StandardFaultException create(java.lang.String standardFaultName, java.lang.Object[] vars, java.lang.Throwable cause)
          Constructs an exception object with the specified fault name and exception and remembers the values of the message variables passed.
 java.lang.String getFaultName()
          Returns the fault name.
 int getNamespace()
          Returns the namespace identifier.
static boolean isStandardFault(java.lang.String namespace, java.lang.String faultName, java.lang.String bpelNamespace, java.lang.String wpcNamespace)
          Checks whether the given fault is a standard fault.
 
Methods inherited from class com.ibm.bpe.api.ProcessException
getCause, getMessage, getMessage, getMessageID, getMessageKey, getMessageVariables, getRootCause, internPrintStackTrace, 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

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

SELECTION_FAILURE

public static final java.lang.String SELECTION_FAILURE
String constant for bpws:selectionFailure fault.

See Also:
Constant Field Values

CONFLICTING_RECEIVE

public static final java.lang.String CONFLICTING_RECEIVE
String constant for bpws:conflictingReceive fault.

See Also:
Constant Field Values

CONFLICTING_REQUEST

public static final java.lang.String CONFLICTING_REQUEST
String constant for bpws:conflictingRequest fault.

See Also:
Constant Field Values

MISMATCHED_ASSIGNMENT_FAILURE

public static final java.lang.String MISMATCHED_ASSIGNMENT_FAILURE
String constant for bpws:mismatchedAssignmentFailure fault.

See Also:
Constant Field Values

MISSING_REPLY

public static final java.lang.String MISSING_REPLY
String constant for bpws:missingReply fault.

See Also:
Constant Field Values

JOIN_FAILURE

public static final java.lang.String JOIN_FAILURE
String constant for bpws:joinFailure fault.

See Also:
Constant Field Values

FORCED_TERMINATION

public static final java.lang.String FORCED_TERMINATION
String constant for bpws:forcedTermination fault.

See Also:
Constant Field Values

CORRELATION_VIOLATION

public static final java.lang.String CORRELATION_VIOLATION
String constant for bpws:correlationViolation fault.

See Also:
Constant Field Values

UNINITIALIZED_VARIABLE

public static final java.lang.String UNINITIALIZED_VARIABLE
String constant for bpws:uninititializedVariable fault.

See Also:
Constant Field Values

REPEATED_COMPENSATION

public static final java.lang.String REPEATED_COMPENSATION
String constant for bpws:repeatedCompensation fault.

See Also:
Constant Field Values

INVALID_REPLY

public static final java.lang.String INVALID_REPLY
String constant for bpws:invalidReply fault.

See Also:
Constant Field Values

TIMEOUT

public static final java.lang.String TIMEOUT
String constant for wpc:timeout failure.

See Also:
Constant Field Values

UNINITIALIZED_PARTNER_ROLE

public static final java.lang.String UNINITIALIZED_PARTNER_ROLE
String constant for bpws:uninitializedPartnerRole fault.

See Also:
Constant Field Values

CONFLICTING_RECEIVE1

public static final java.lang.String CONFLICTING_RECEIVE1
String constant for conflictingReceive1 message.

See Also:
Constant Field Values

CONFLICTING_RECEIVE2

public static final java.lang.String CONFLICTING_RECEIVE2
String constant for conflictingReceive2 message.

See Also:
Constant Field Values

CONFLICTING_RECEIVE3

public static final java.lang.String CONFLICTING_RECEIVE3
String constant for conflictingReceive3 message.

See Also:
Constant Field Values

SERVICE_TERMINATED

public static final java.lang.String SERVICE_TERMINATED
String constant for wpc:serviceTerminated failure.

See Also:
Constant Field Values

SPLIT_FAILURE

public static final java.lang.String SPLIT_FAILURE
String constant for wpc:splitFailure.

See Also:
Constant Field Values

INVALID_EXPRESSION_VALUE

public static final java.lang.String INVALID_EXPRESSION_VALUE
String constant for bpws:forEachCounterError.

See Also:
Constant Field Values

INVALID_BRANCH_CONDITION

public static final java.lang.String INVALID_BRANCH_CONDITION
String constant for bpws:invalidBranchCondition.

See Also:
Constant Field Values

COMPLETION_CONDITION_FAILURE

public static final java.lang.String COMPLETION_CONDITION_FAILURE
String constant for bpws:completionConditionFailure.

See Also:
Constant Field Values

ENDPOINT_NOT_FOUND

public static final java.lang.String ENDPOINT_NOT_FOUND
String constant for wpc:endpointNotFound.

See Also:
Constant Field Values

IOR_SPLIT_FAILURE

public static final java.lang.String IOR_SPLIT_FAILURE
String constant for wpc:iorSplitFailure.

See Also:
Constant Field Values

ALL_JOIN_FAILURE

public static final java.lang.String ALL_JOIN_FAILURE
String constant for wpc:allJoinFailure.

See Also:
Constant Field Values

SCOPE_INITIALIZATION_FAILURE

public static final java.lang.String SCOPE_INITIALIZATION_FAILURE
String constant for bpws:scopeInitializationFailure.

See Also:
Constant Field Values

COMPENSATE_FAILURE

public static final java.lang.String COMPENSATE_FAILURE
String constant for wpc:compensateFailure

See Also:
Constant Field Values

_faultName

protected java.lang.String _faultName
BPEL standard fault name.


_namespace

protected int _namespace
The namespace of the standard fault (bpel or wpc)

Method Detail

create

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

Parameters:
standardFaultName - The fault name.
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.

isStandardFault

public static boolean isStandardFault(java.lang.String namespace,
                                      java.lang.String faultName,
                                      java.lang.String bpelNamespace,
                                      java.lang.String wpcNamespace)
Checks whether the given fault is a standard fault.

Parameters:
namespace - The namespace of the fault.
faultName - The name of the fault.
bpelNamespace - The BPEL namepace. May not be null.
wpcNamespace - The BPEL extensions namespace. May not be null.
Returns:
True iff the given fault is a standard fault.

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.

IBM WebSphere Application ServerTM
Release 8