Package com.ptc.windchill.esi.utl
Class ESIException
java.lang.Object
java.lang.Throwable
java.lang.Exception
wt.util.WTException
com.ptc.windchill.esi.utl.ESIException
- All Implemented Interfaces:
Serializable,LocalizableMessage,Message
- Direct Known Subclasses:
ESIMapException,ESINoTargetAssignmentException,ESIRendererException,ESIResponseMetaInfoException,MissingParameterException,PreReleaseValidationException
Provide message wrapper for other ESI Exceptions
Supported API: true
Extendable: true
Supported API: true
Extendable: true
- See Also:
-
Field Summary
Fields inherited from class wt.util.WTException
GETMESSAGE_LINE_SEPARATOR, LINE_SEPARATOR, SPACE_SEPARATOR, TOSTRING_LINE_SEPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor
Supported API: trueESIException(int errorCode, String message) Constructs a ESIException exception with the input message.ESIException(int errorCode, Throwable t, String message) Constructs a ESIException exception with a localizable standard message constructed from the bundle, key, and params.Get the localized message and the stack trace from the argument.ESIException(String msg) Constructs an ESIException with an input localizable standard message.ESIException(String rb, String key, Object[] params) Constructs a ESIException with a localizable standard message constructed from the bundle, key, and params.ESIException(Throwable t, String rb, String key, Object[] params) Constructs a ESIException with nested throwable, the bundle, key, and params. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the error code.voidsetErrorCode(int errorCode) Sets the error code.Methods inherited from class wt.util.WTException
getAdditionalMessageArray, getAdditionalMessages, getAdditionalMessages, getExceptionIdentifier, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getNestedExceptionString, getNestedExceptionString, getNestedThrowable, getStandardMessage, getStandardMessage, getWTMessage, printStackTrace, printStackTrace, printStackTrace, setLocalizedMessage, toString, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace
-
Constructor Details
-
ESIException
Get the localized message and the stack trace from the argument. Store it in the localized message
Supported API: true- Parameters:
e-
-
ESIException
public ESIException()Default constructor
Supported API: true -
ESIException
Constructs an ESIException with an input localizable standard message.
Supported API: true- Parameters:
msg-
-
ESIException
Constructs a ESIException with a localizable standard message constructed from the bundle, key, and params.
Supported API: true- Parameters:
rb- the resource bundle the key resides inkey- the key containing the message in the resource bundleparams- the parameters to substitute in the message
-
ESIException
Constructs a ESIException with nested throwable, the bundle, key, and params.
Supported API: true- Parameters:
t- the nested throwablerb- the resource bundle the key resides inkey- the key containing the message in the resource bundleparams- the parameters to substitute in the message
-
ESIException
Constructs a ESIException exception with the input message. The input argument "errorCode" is used in "Pre_Release_Validate" workflow expression to take the appropriate path after its execution. Check the constants which starts with "EC_" inESIConstfor different error codes. e.g., when the "Pre_Release_Validate" workflow expression receives this exception with the error codeESIConst.EC_NO_VALID_PROMOTABLES, the OOTB workflow will get terminated.
Supported API: true- Parameters:
errorCode- - error code to decide the path after the execution of "Pre_Release_Validate" workflow expression.message- - exception message
-
ESIException
Constructs a ESIException exception with a localizable standard message constructed from the bundle, key, and params. The input argument "errorCode" is used in "Pre_Release_Validate" workflow expression to take the appropriate path after its execution. Check the constants which starts with "EC_" inESIConstfor different error codes. e.g., when the "Pre_Release_Validate" workflow expression receives this exception with the error codeESIConst.EC_NO_VALID_PROMOTABLES, the OOTB workflow will get terminated.
Supported API: true- Parameters:
errorCode- - error code to decide the path after the execution of "Pre_Release_Validate" workflow expression.t- - the throwable objectmessage- - exception message
-
-
Method Details
-
setErrorCode
public void setErrorCode(int errorCode) Sets the error code.
Supported API: true- Parameters:
errorCode- the errorCode to set
-
getErrorCode
public int getErrorCode()Returns the error code.
Supported API: true- Returns:
- the errorCode
-