com.ibm.pdq.runtime.exception
Class DataRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.ibm.pdq.runtime.exception.DataRuntimeException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- GenerationException, UpdateManyException
-
public class DataRuntimeException
- extends RuntimeException
Indicates the occurrence of an exception in a pureQuery method.
- See Also:
- Serialized Form
Method Summary
Method Summary | Return Data Type | Method Name and Description |
void |
addLastException(DataRuntimeException newException)
Adds the DataRuntimeException newException as the last Exception in a linked list of DataRuntimeExceptions. |
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 DataRuntimeExceptions. |
String |
getProductVersion()
Returns a String that indicates the version of the pureQuery code in which the exception occurred. |
addLastException
public void addLastException(DataRuntimeException newException)
- Adds the
DataRuntimeException newException as the last Exception in a linked list of DataRuntimeExceptions. 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
DataRuntimeExceptions that occur. The next Exception in the linked list can be obtained by using getNextException().
-
- Parameters:
newException - a DataRuntimeException instance to be added as the last Exception in the linked list of
DataRuntimeExceptions
- See Also:
getNextException()
getExceptionLocation
public int getExceptionLocation()
- Returns the
int that indicates where in the code the exception occurred.
-
- Returns:
- the
int that indicates where in the code the exception occurred
getMessage
public String getMessage()
- Returns the message that is associated with the exception.
-
- Overrides:
getMessage in class Throwable
getNextException
public DataRuntimeException getNextException()
- Returns the
DataRuntimeException nextException that is the next Exception in a linked list of DataRuntimeExceptions. 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 DataRuntimeExceptions that occur. A DataRuntimeException can be added to the end of the linked list by calling addLastException(DataRuntimeException).
-
- Returns:
- the
DataRuntimeException instance that is the next Exception in the linked list of DataRuntimeExceptions
- See Also:
addLastException(DataRuntimeException)
getProductVersion
public String getProductVersion()
- Returns a
String that indicates the version of the pureQuery code in which the exception occurred.
-
- Returns:
- a
String that indicates the version of the pureQuery code in which the exception occurred