public final class tcAPIException
extends com.thortech.xl.util.ThorException
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
isMessage
The detailed message.
|
java.lang.String |
isSeverity |
Constructor and Description |
---|
tcAPIException()
Creates a new tcAPIException object.
|
tcAPIException(java.lang.String isMessage)
Constructs a new tcAPIException with the
specified detail message.
|
tcAPIException(java.lang.String errorCode,
java.lang.String isMessage)
Constructs a new tcAPIException with the specified error code and
detail message.
|
tcAPIException(java.lang.String isMessage,
java.lang.Throwable ex) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object.The method clone performs
a specific cloning operation, if the class of this object does not
implement the interface Cloneable, then a CloneNotSupportedException
is thrown.
|
java.lang.String |
getAction() |
java.lang.String |
getErrorCode()
Returns the error code associated with API exception
|
java.lang.String |
getMessage()
Returns the error message associated with API exception
|
java.lang.Object |
getReturnValue()
Returns the object that needed to be returned by the API when the API
exception occurred.
|
java.lang.String |
getSeverity()
Returns the Severity of error message associated with API exception
|
void |
setAction(java.lang.String isAction) |
void |
SetErrorCode(java.lang.String code)
Method to set the Error code on API Exception
|
void |
SetMessage(java.lang.String message)
Method to set the Error message on API Exception
|
void |
setReturnValue(java.lang.Object retval)
Stores the return value that the API intended to send back when a API
exception occurred by the failing of some of the transactions
|
void |
setSeverity(java.lang.String severity)
Method to set the Severity of Error message on API Exception
|
public java.lang.String isMessage
public java.lang.String isSeverity
public tcAPIException()
public tcAPIException(java.lang.String isMessage)
isMessage
- the detailed message. The detailed message is saved
for later retrieval by the Throwable.getMessage() method.public tcAPIException(java.lang.String errorCode, java.lang.String isMessage)
errorCode
- the error codeisMessage
- the detailed message. The detailed message is saved
for later retrieval by the Throwable.getMessage() method.public tcAPIException(java.lang.String isMessage, java.lang.Throwable ex)
public void setReturnValue(java.lang.Object retval)
retval
- the object that needs to be returnedpublic java.lang.Object getReturnValue()
public java.lang.Object clone()
clone
in class java.lang.Object
java.lang.Error
- Error if any of the components cannot be clonedpublic void SetErrorCode(java.lang.String code)
code,
- error code to be setpublic java.lang.String getErrorCode()
public void SetMessage(java.lang.String message)
message,
- error message to be setpublic java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public void setSeverity(java.lang.String severity)
severity,
- severity of error message to be setpublic java.lang.String getSeverity()
public java.lang.String getAction()
public void setAction(java.lang.String isAction)