com.ibm.itim.workflow.model
Class WorkflowException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.ibm.itim.workflow.model.WorkflowException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InvalidQueryException

public class WorkflowException
extends java.lang.Exception

This class is used for errors that occured within the workflow engine.

See Also:
Serialized Form

Constructor Summary
WorkflowException(java.lang.String errCode)
          Constructs with an error code.
WorkflowException(java.lang.String errCode, java.lang.String exMsg)
          Constructs with an error code and an extra message string.
WorkflowException(java.lang.String errCode, java.lang.Throwable cause)
          Constructs with an error code and the cause exception.
 
Method Summary
 java.lang.String getErrorCode()
          Returns the error code.
 java.lang.String getExtraMessage()
          Returns the additional information (if any) in string format.
 java.lang.String getMessage(java.util.Locale locale)
          Returns localized error message according to the specified locale.
 void printStackTrace()
          Prints out the stack trace, including the stack trace of the original exception (if there was a separate one).
 void printStackTrace(java.io.PrintStream ps)
          Prints out the stack trace, including the stack trace of the original exception (if there was a separate one).
 void printStackTrace(java.io.PrintWriter pw)
          Prints out the stack trace, including the stack trace of the original exception (if there was a separate one).
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WorkflowException

public WorkflowException(java.lang.String errCode)
Constructs with an error code.

WorkflowException

public WorkflowException(java.lang.String errCode,
                         java.lang.String exMsg)
Constructs with an error code and an extra message string.
Parameters:
errCode - Error code identifying the problem.
exMsg - Additional information in a String.

WorkflowException

public WorkflowException(java.lang.String errCode,
                         java.lang.Throwable cause)
Constructs with an error code and the cause exception.
Parameters:
errCode - Error code identifying the problem.
cause - Throwable representing the exception causing this exception.
Method Detail

getMessage

public java.lang.String getMessage(java.util.Locale locale)
Returns localized error message according to the specified locale.

getErrorCode

public java.lang.String getErrorCode()
Returns the error code.

getExtraMessage

public java.lang.String getExtraMessage()
Returns the additional information (if any) in string format.

printStackTrace

public void printStackTrace()
Prints out the stack trace, including the stack trace of the original exception (if there was a separate one).
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Prints out the stack trace, including the stack trace of the original exception (if there was a separate one).
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Prints out the stack trace, including the stack trace of the original exception (if there was a separate one).
Overrides:
printStackTrace in class java.lang.Throwable