|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.thortech.xl.util.ThorException
Thor.API.Exceptions.tcAPIException
public final class tcAPIException
This is generic exception raised while using API operations. For example if there is a problem while retrieving the information from the database this exception is raised.
| Field Summary | |
|---|---|
java.lang.String |
isMessageThe detailed message. |
java.lang.String |
isSeverity |
| Constructor Summary | |
|---|---|
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) |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class com.thortech.xl.util.ThorException |
|---|
getOriginalCause, setCause |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String isMessage
public java.lang.String isSeverity
| Constructor Detail |
|---|
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)
| Method Detail |
|---|
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.Objectjava.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.Throwablepublic 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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||