com.ibm.bpe.api
Class ProcessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ibm.bpe.api.ProcessException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ActivityNameNotUniqueException, BpelException, CannotAccessObjectException, CannotDeleteNamespaceException, ConfigurationConnectionNotFoundException, ConfigurationDataSourceNotFoundException, ConfigurationGenericErrorException, CouldNotCreateWSIFPort_ProcessException, CreateFailedException, DatabaseException, DataHandlingException, EngineActivityStoppedException, EngineAssignmentFailureExceptionException, EngineAuthorizationPluginException, EngineCannotDeleteProcessException, EngineCannotDeserializeReplyContextException, EngineCannotOpenCompensationSphereException, EngineCannotUnwrapReplyContextException, EngineCompensationNotSupportedException, EngineConditionEvaluationException, EngineCustomAttributeAccessViolationException, EngineDuplicateAwaitedEventException, EngineErrorInDescriptionResolutionException, EngineEventNotKnownException, EngineEverybodyWorkItemException, EngineExitConditionFailedException, EngineIncompatibleTypesException, EngineIncompleteUserInputException, EngineInvalidCompensationSphereDescriptorException, EngineInvalidNamespaceURIException, EngineInvalidReplacementVariableException, EngineJmsApiContextException, EngineLastAdminWorkItemException, EngineNoInitialReceiveException, EngineNotAuthorizedException, EngineParameterNullException, EngineParentProcessContextException, EngineProcessInstanceNameNotUniqueException, EngineProcessModelDoesNotExistException, EngineProcessModelStoppedException, EngineProcessReaderWorkItemException, EngineProcessStarterDeletedException, EngineSelectionFailureExceptionException, EngineSubProcessHasNoMatchingEventException, EngineVariableDoesNotExistException, EngineWrongKindException, EngineWrongMessageTypeException, EngineWrongStateException, ExecuteInputOnlyOperation_NotSupportedException, GenericErrorException, IdAndCorrelationSetMismatchException, IdWrongFormatException, IdWrongTypeException, ImplementationNotFoundException, InvalidLengthException, InvalidObjectNameException, InvalidParameterValueException, JmsApiEventNameMissingException, JmsApiInvalidPayloadException, JmsApiInvalidVerbException, JmsApiProcessInstanceMissingException, JmsApiRequestFailedException, JmsApiRetryLimitExceededException, MethodNotApplicableException, MissingPartsException, NoMacroFlowException, NotSerializableException, ObjectDoesNotExistException, PluginsGenericErrorException, ProcessBindingMissingFormatTypeException, ProcessBindingMissingTypeMappingException, ProcessFaultException, ProcessInputTypeNameNullException, ProcessInputTypeSystemNullException, ProcessInputUnknownTypeSystemException, ProcessInstanceNotUniqueException, ProcessOperationCannotFindModelException, ProcessOperationCannotInvokeException, ProcessOperationFailedException, ProcessOperationFaultNameNotSetException, ProcessOperationMissingFaultMessageException, ProcessOperationNoOutputMessageException, ProcessOperationNotKnownByPortException, ProcessOperationUnknownFaultMessageTypeException, ProcessTemplateInstallOnDemandFailedException, ProcessTemplateInstallOnDemandFailedFileNotFoundException, ProcessTemplateNotFoundException, QueryInvalidOperandException, QueryInvalidTimestampException, QueryUndefinedParameterException, QueryUnknownColumnException, QueryUnknownOperatorException, QueryUnknownTableException, SendReplyErrorException, ServiceNotUniqueException, SystemFaultException, TemplateInUseException, UnexpectedFailureException, UserInputInitException, WorkItemManagerException
- public class ProcessException
- extends java.lang.Exception
This is the base class for all exceptions thrown by Process Choreographer.
It is a best practice to catch all exceptions with a final catch(ProcessException) statement.
This statement helps to ensure the upward compatibility of your application program
because it takes account of all future exceptions that can occur.
- See Also:
- Serialized Form
Constructor Summary |
ProcessException(java.lang.String message)
Constructs an exception object from the error message passed. |
ProcessException(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. |
ProcessException(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. |
ProcessException(java.lang.String message,
java.lang.Throwable cause)
Constructs an exception object from the error message and the exception passed. |
ProcessException(java.lang.Throwable cause)
Constructs an exception object from the exception passed. |
Method Summary |
java.lang.Throwable |
getCause()
Returns the nested exception. |
java.lang.String |
getMessage()
Returns the message text of the exception object. |
java.lang.String |
getMessage(java.util.Locale locale)
Returns the message text of the exception object in the specified language. |
java.lang.String |
getMessageKey()
Returns the message key. |
java.lang.Object[] |
getMessageVariables()
Returns the values of the message variables. |
java.lang.Throwable |
getRootCause()
Returns the root exception of this exception. |
void |
printStackTrace()
Prints this exception to the standard error stream. |
void |
printStackTrace(java.io.PrintStream s)
Prints this exception to the specified print stream. |
void |
printStackTrace(java.io.PrintWriter s)
Prints this exception to the specified print writer. |
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 |
ProcessException
public ProcessException(java.lang.String message)
- Constructs an exception object from the error message passed.
- Parameters:
message
- The error message.
ProcessException
public ProcessException(java.lang.Throwable cause)
- Constructs an exception object from the exception passed.
- Parameters:
cause
- The exception that was thrown.
ProcessException
public ProcessException(java.lang.String message,
java.lang.Throwable cause)
- Constructs an exception object from the error message and the exception passed.
- Parameters:
message
- The error message.cause
- The exception that was thrown.
ProcessException
public ProcessException(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.
ProcessException
public ProcessException(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.
getMessage
public final java.lang.String getMessage()
- Returns the message text of the exception object. If the exception object contains a
message key, the message text is returned in the default language.
- Returns:
- String -
The message text.
getMessage
public final java.lang.String getMessage(java.util.Locale locale)
- Returns the message text of the exception object in the specified language. If the exception object contains a
message key, the message text is returned in the specified language.
- Parameters:
locale
- The locale of the message catalog to be used. Is ignored if the exception object
does not contain a message key.
- Returns:
- String -
The message text.
getMessageKey
public final java.lang.String getMessageKey()
- Returns the message key.
- Returns:
- String -
The message key. If a message key is not specified, null is returned.
getMessageVariables
public final java.lang.Object[] getMessageVariables()
- Returns the values of the message variables.
- Returns:
- Object[] -
The array of variable values. An empty array is returned if there are no variable values.
getCause
public final java.lang.Throwable getCause()
- Returns the nested exception.
- Returns:
- Throwable -
The nested exception. If there is no nested exception, null is returned.
getRootCause
public final java.lang.Throwable getRootCause()
- Returns the root exception of this exception.
- Returns:
- Throwable -
The root exception.
printStackTrace
public final void printStackTrace()
- Prints this exception to the standard error stream.
This call is forwarded to
printStackTrace(PrintWriter)
.
printStackTrace
public final void printStackTrace(java.io.PrintStream s)
- Prints this exception to the specified print stream.
This call will be forwarded to
printStackTrace(PrintWriter)
.
- Parameters:
s
- The print stream to write to.
printStackTrace
public final void printStackTrace(java.io.PrintWriter s)
- Prints this exception to the specified print writer. If this exception
has nested exceptions, the root exception's stack trace is printed.
- Parameters:
s
- The print writer to write to.