|
|||||||||
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
Thor.API.Exceptions.tcBulkException
public final class tcBulkException
This exception is raised whenever a bulk operation is called and the operation is only successfull on some of the bulk transactions. If this happens, a tcBulkOperation is raise and the keys that failed are stored in isKeys with their respective error messages in isErrorMessages. In Addition, if the operation returned information back, that information can be set in the using setReturnValue by the API. The caller will need to get the return value and cast it to the respective object based on the information about the API that is called.
Field Summary | |
---|---|
java.lang.String[] |
errorCodes |
java.lang.String[] |
isErrorMessages Corresponding error messages for each of the keys that failed the operation |
java.lang.String[] |
isKeys Array of keys that failed the operation |
java.lang.String |
isMessage The message of this exception |
java.lang.String[] |
isSeverity |
Constructor Summary | |
---|---|
tcBulkException() Creates a new tcBulkException object. |
|
tcBulkException(java.lang.String isMessage, java.lang.String[] isKeys, java.lang.String[] isErrorMessages) Creates a new tcBulkException object. |
|
tcBulkException(java.lang.String isMessage, java.lang.String[] isKeys, java.lang.String[] isErrorMessages, java.lang.String[] errorCodes) |
|
tcBulkException(java.lang.String isMessage, java.lang.String[] isKeys, java.lang.String[] isErrorMessages, java.lang.String[] errorCodes, java.lang.String[] severity) Creates a new tcBulkException object. |
Method Summary | |
---|---|
java.lang.Object |
clone() Clone method |
java.lang.String[] |
getErrorCodes() |
java.lang.Object |
getReturnValue() Returns the object that needed to be returned by the API when the bulk exception occurred. |
void |
setReturnValue(java.lang.Object retval) Stores the return value that the API intended to send back when a bulk exception occurred by the failing of some of the transactions |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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[] isKeys
public java.lang.String[] isErrorMessages
public java.lang.String[] errorCodes
public java.lang.String[] isSeverity
Constructor Detail |
---|
public tcBulkException()
public tcBulkException(java.lang.String isMessage, java.lang.String[] isKeys, java.lang.String[] isErrorMessages)
isMessage
- The generic message for this exceptionisKeys
- array of keys that failed the operationisErrorMessages
- array of messages corresponding to the keys that failed the operationpublic tcBulkException(java.lang.String isMessage, java.lang.String[] isKeys, java.lang.String[] isErrorMessages, java.lang.String[] errorCodes)
public tcBulkException(java.lang.String isMessage, java.lang.String[] isKeys, java.lang.String[] isErrorMessages, java.lang.String[] errorCodes, java.lang.String[] severity)
isMessage
- The generic message for this exceptionisKeys
- array of keys that failed the operationisErrorMessages
- array of messages corresponding to the keys that failed the operationerrorCodes
- array of error codes corresponding to the keys that failed the operationseverity
- array of severity level corresponding to the keys that failed the operationMethod Detail |
---|
public java.lang.String[] getErrorCodes()
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 cloned.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |