|
||||||||||
| 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.sql.SQLException
com.caucho.util.SQLExceptionWrapper
public class SQLExceptionWrapper
Wraps an exception in a SQLException wrapper.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.sql.SQLException |
|---|
getErrorCode, getNextException, getSQLState, iterator, setNextException |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public 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 exception| Method Detail |
|---|
public 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||