Package com.thortech.xl.gc.exception
Class ProviderException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.thortech.xl.gc.exception.ProviderException
- All Implemented Interfaces:
- Serializable,- Cloneable
This is generic exception raised while using Reconciliation Transport Provider.
- Version:
- Author:
- FirdausFraz
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new tcAPIException object.ProviderException(String isMessage) Constructs a new tcAPIException with the specified detail message.ProviderException(String isMessage, Exception ex) ProviderException(String errorCode, String isMessage) Constructs a new tcAPIException with the specified error code and detail message.
- 
Method SummaryModifier and TypeMethodDescriptionclone()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.Returns the error code associated with API exceptionReturns the error message associated with API exceptionReturns the object that needed to be returned by the API when the API exception occurred.voidSetErrorCode(String code) Method to set the Error code on API ExceptionvoidSetMessage(String message) Method to set the Error message on API ExceptionvoidsetReturnValue(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 transactionsMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Field Details- 
isMessageThe detailed message. The detailed message is saved for later retrieval by the Throwable.getMessage() method.
 
- 
- 
Constructor Details- 
ProviderExceptionpublic ProviderException()Creates a new tcAPIException object.
- 
ProviderExceptionConstructs a new tcAPIException with the specified detail message.- Parameters:
- isMessage- the detailed message. The detailed message is saved for later retrieval by the Throwable.getMessage() method.
 
- 
ProviderExceptionConstructs a new tcAPIException with the specified error code and detail message.- Parameters:
- errorCode- the error code
- isMessage- the detailed message. The detailed message is saved for later retrieval by the Throwable.getMessage() method.
 
- 
ProviderException
 
- 
- 
Method Details- 
setReturnValueStores the return value that the API intended to send back when a API exception occurred by the failing of some of the transactions- Parameters:
- retval- the object that needs to be returned
- Since:
- 8.0
 
- 
getReturnValueReturns the object that needed to be returned by the API when the API exception occurred.- Returns:
- an Object that need to be casted depending on the return value of the API that caused the API exception to happen
- Since:
- 8.0
 
- 
cloneCreates 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.- Returns:
- java.lang.Object
- Throws:
- Error- Error if any of the components cannot be cloned
 
- 
SetErrorCodeMethod to set the Error code on API Exception- Parameters:
- code- , error code to be set
 
- 
getErrorCodeReturns the error code associated with API exception- Returns:
- the error code associated with the exception
 
- 
SetMessageMethod to set the Error message on API Exception- Parameters:
- message- , error message to be set
 
- 
getMessageReturns the error message associated with API exception- Overrides:
- getMessagein class- Throwable
- Returns:
- the error message associated with the exception
 
 
-