|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.ibm.pdq.runtime.exception.DataRuntimeException
public class DataRuntimeException extends RuntimeException
Indicates the occurrence of an exception in a pureQuery method.
Modifier and Type | Method and Description |
---|---|
void |
addLastException(DataRuntimeException newException) Adds the DataRuntimeException newException as the last Exception in a linked list of DataRuntimeException s. |
Integer |
getErrorCode() Returns the error code for this DataRuntimeException . |
ErrorType |
getErrorType() Returns an ErrorType object that indicates the error type of this DataRuntimeException . |
int |
getExceptionLocation() Returns the int that indicates where in the code the exception occurred. |
String |
getMessage() Returns the message that is associated with the exception. |
DataRuntimeException |
getNextException() Returns the DataRuntimeException nextException that is the next Exception in a linked list of DataRuntimeException s. |
String |
getProductVersion() Returns a String that indicates the version of the pureQuery code in which the exception occurred. |
String |
getSQLState() Returns the SQLState for this DataRuntimeException . |
boolean |
isTransient() Returns a boolean value that indicates whether the action that resulted in this exception has a chance to succeed if attempted again. |
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 |
public void addLastException(DataRuntimeException newException)
DataRuntimeException newException
as the last Exception
in a linked list of DataRuntimeException
s. The DataRuntimeException
instance on which the addLastException
method is called is also a member of that linked list. This linked list can be used to record a sequence of DataRuntimeException
s that occur. The next Exception
in the linked list can be obtained by using getNextException()
.newException
- a DataRuntimeException
instance to be added as the last Exception
in the linked list of DataRuntimeException
sgetNextException()
public Integer getErrorCode()
DataRuntimeException
. If the DataRuntimeException
exception has an SQLException
object as its cause (getCause()
), this method returns the error code of the cause exception (cause.getErrorCode()
). In other cases, this method might return an error code that is generated by pureQuery. If no error code is available, this method returns -99999
.public ErrorType getErrorType()
ErrorType
object that indicates the error type of this DataRuntimeException
. If the DataRuntimeException
has an SQLException
object as its cause (getCause()
), the error type is derived from the SQLState and error code of the cause. If the cause is not an SQLException
, this method returns ErrorType.UNCATEGORIZED_ERROR
.public int getExceptionLocation()
int
that indicates where in the code the exception occurred.int
that indicates where in the code the exception occurredpublic String getMessage()
getMessage
in class Throwable
public DataRuntimeException getNextException()
DataRuntimeException nextException
that is the next Exception
in a linked list of DataRuntimeException
s. The DataRuntimeException
instance on which the getNextException
method is called is also a member of that linked list. This linked list can be used to record a sequence of DataRuntimeException
s that occur. A DataRuntimeException
can be added to the end of the linked list by calling addLastException(DataRuntimeException)
.DataRuntimeException
instance that is the next Exception
in the linked list of DataRuntimeException
saddLastException(DataRuntimeException)
public String getProductVersion()
String
that indicates the version of the pureQuery code in which the exception occurred.String
that indicates the version of the pureQuery code in which the exception occurredpublic String getSQLState()
DataRuntimeException
. If the DataRuntimeException
exception has an SQLException
object as its cause (getCause()
), this method returns the SQLState of the cause exception (cause.getSQLState()
, or null
if its SQLState is null
). If there is no cause exception, or if the cause is not an SQLException
, this method returns "FFFFF"
.public boolean isTransient()
boolean
value that indicates whether the action that resulted in this exception has a chance to succeed if attempted again. The value true
indicates that an operation that previously failed might be able to succeed if the operation is retried without any intervention by application-level functionality.boolean
that indicates whether the action that resulted in this exception has a chance to succeed if attempted again.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |