public class SQLExceptionWrapper extends java.sql.SQLException implements ExceptionWrapper
| Constructor and Description |
|---|
SQLExceptionWrapper(java.lang.String message)
Creates the wrapper with a message.
|
SQLExceptionWrapper(java.lang.String message,
java.lang.Throwable e)
Creates the wrapper with a message and a root cause.
|
SQLExceptionWrapper(java.lang.Throwable e)
Creates the wrapper with a root cause.
|
| Modifier and Type | Method and Description |
|---|---|
static java.sql.SQLException |
create(java.lang.Throwable e) |
java.lang.Throwable |
getCause()
Returns the root cause.
|
java.lang.Throwable |
getRootCause()
Returns the root cause.
|
getErrorCode, getNextException, getSQLState, iterator, setNextExceptionaddSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic SQLExceptionWrapper(java.lang.String message)
public SQLExceptionWrapper(java.lang.String message,
java.lang.Throwable e)
message - the message.e - the rootCause exceptionpublic SQLExceptionWrapper(java.lang.Throwable e)
message - the message.e - the rootCause exceptionpublic static java.sql.SQLException create(java.lang.Throwable e)
public java.lang.Throwable getRootCause()
getRootCause in interface ExceptionWrapperpublic java.lang.Throwable getCause()
getCause in class java.lang.Throwable