public class WrappedSQLException extends java.sql.SQLException implements MaximoSQLException
This class and it's sub-classes catch SQLExceptions in an attempt
handle the exception automatically. In the event that the exception can't be handled, this
object is created with the original exception as it's cause.,
Serialized Form| Constructor and Description |
|---|
WrappedSQLException(java.lang.Exception wrapped) |
WrappedSQLException(java.lang.String errorGroup,
java.lang.String errorKey,
java.lang.Object[] params,
java.lang.Exception wrapped) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDefaultMessage()
Give the default message, for when the message isn't found in the message table.
|
int |
getErrorCode() |
java.lang.String |
getErrorGroup()
Give the error group.
|
java.lang.String |
getErrorKey() |
java.lang.Object[] |
getParameters() |
java.lang.String |
toString() |
getNextException, getSQLState, iterator, setNextExceptionaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCausepublic WrappedSQLException(java.lang.Exception wrapped)
public WrappedSQLException(java.lang.String errorGroup,
java.lang.String errorKey,
java.lang.Object[] params,
java.lang.Exception wrapped)
public int getErrorCode()
getErrorCode in class java.sql.SQLExceptionpublic java.lang.String toString()
toString in class java.lang.Throwablepublic java.lang.String getDefaultMessage()
MaximoSQLExceptiongetDefaultMessage in interface MaximoSQLExceptionpublic java.lang.String getErrorGroup()
MaximoSQLExceptiongetErrorGroup in interface MaximoSQLExceptionpublic java.lang.String getErrorKey()
getErrorKey in interface MaximoSQLExceptionpublic java.lang.Object[] getParameters()
getParameters in interface MaximoSQLException