public final class SILAPIException
extends java.lang.Exception
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
isMessage
The detailed message.
|
Constructor and Description |
---|
SILAPIException()
Creates a new tcAPIException object.
|
SILAPIException(java.lang.String isMessage)
Constructs a new tcAPIException with the
specified detail message.
|
SILAPIException(java.lang.String isMessage,
java.lang.Exception ex) |
SILAPIException(java.lang.String errorCode,
java.lang.String isMessage)
Constructs a new tcAPIException with the specified error code and
detail message.
|
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 |
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.
|
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
|
public java.lang.String isMessage
public SILAPIException()
public SILAPIException(java.lang.String isMessage)
isMessage
- the detailed message. The detailed message is saved
for later retrieval by the Throwable.getMessage() method.public SILAPIException(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 SILAPIException(java.lang.String isMessage, java.lang.Exception 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