public class DbcpException
extends java.lang.RuntimeException
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.
Modifier and Type | Field and Description |
---|---|
protected java.lang.Throwable |
cause
Deprecated.
The root cause of this exception (typically an
SQLException but this is not required). |
private static long |
serialVersionUID
Deprecated.
|
Constructor and Description |
---|
DbcpException()
Deprecated.
Construct a new runtime exception with
null as its
detail message. |
DbcpException(java.lang.String message)
Deprecated.
Construct a new runtime exception with the specified detail message.
|
DbcpException(java.lang.String message,
java.lang.Throwable cause)
Deprecated.
Construct a new runtime exception with the specified detail message
and cause.
|
DbcpException(java.lang.Throwable cause)
Deprecated.
Construct a new runtime exception with the specified cause and a
detail message of
(cause == null ? null : cause.toString()) . |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getCause()
Deprecated.
Return the root cause of this exception (if any).
|
private static final long serialVersionUID
protected java.lang.Throwable cause
SQLException
but this is not required).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 exception