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 FormConstructor 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, setNextException
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCause
public 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.SQLException
public java.lang.String toString()
toString
in class java.lang.Throwable
public java.lang.String getDefaultMessage()
MaximoSQLException
getDefaultMessage
in interface MaximoSQLException
public java.lang.String getErrorGroup()
MaximoSQLException
getErrorGroup
in interface MaximoSQLException
public java.lang.String getErrorKey()
getErrorKey
in interface MaximoSQLException
public java.lang.Object[] getParameters()
getParameters
in interface MaximoSQLException