|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--org.apache.commons.dbcp.DbcpException
Subclass of RuntimeException
that can be used to wrap
a SQLException
using the "root cause" pattern of JDK 1.4
exceptions, but without requiring a 1.4 runtime environment.
Field Summary | |
protected java.lang.Throwable |
cause
The root cause of this exception (typically an SQLException but this is not required). |
Constructor Summary | |
DbcpException()
Construct a new runtime exception with null as its
detail message. |
|
DbcpException(java.lang.String message)
Construct a new runtime exception with the specified detail message. |
|
DbcpException(java.lang.String message,
java.lang.Throwable cause)
Construct a new runtime exception with the specified detail message and cause. |
|
DbcpException(java.lang.Throwable cause)
Construct a new runtime exception with the specified cause and a detail message of (cause == null ? null : cause.toString()) . |
Method Summary | |
java.lang.Throwable |
getCause()
Return the root cause of this exception (if any). |
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 |
Field Detail |
protected java.lang.Throwable cause
SQLException
but this is not required).
Constructor Detail |
public DbcpException()
null
as its
detail message.
public DbcpException(java.lang.String message)
message
- The detail message for this exceptionpublic DbcpException(java.lang.String message, java.lang.Throwable cause)
message
- The detail message for this exceptioncause
- The root cause for this exceptionpublic DbcpException(java.lang.Throwable cause)
(cause == null ? null : cause.toString())
.
cause
- The root cause for this exceptionMethod Detail |
public 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 |