org.apache.commons.dbcp
public class: DbcpException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.commons.dbcp.DbcpException
All Implemented Interfaces:
Serializable
Deprecated! This - will be removed in a future version of DBCP.
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.
- author:
Jonathan - Fuerth
- author:
Dan - Fraser
- version:
$ - Revision: 479137 $ $Date: 2006-11-25 08:51:48 -0700 (Sat, 25 Nov 2006) $
| Field Summary |
|---|
| protected Throwable | cause | The root cause of this exception (typically an
SQLException but this is not required). |
| Constructor: |
public DbcpException() {
super();
}
Construct a new runtime exception with null as its
detail message. |
public DbcpException(String message) {
this(message, null);
}
Construct a new runtime exception with the specified detail message. Parameters:
message - The detail message for this exception
|
public DbcpException(Throwable cause) {
super((cause == null) ? (String) null : cause.toString());
this.cause = cause;
}
Construct a new runtime exception with the specified cause and a
detail message of (cause == null ? null : cause.toString()). Parameters:
cause - The root cause for this exception
|
public DbcpException(String message,
Throwable cause) {
super(message);
this.cause = cause;
}
Construct a new runtime exception with the specified detail message
and cause. Parameters:
message - The detail message for this exception
cause - The root cause for this exception
|
| Method from org.apache.commons.dbcp.DbcpException Summary: |
|---|
|
getCause |
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Method from org.apache.commons.dbcp.DbcpException Detail: |
public Throwable getCause() {
// --------------------------------------------------------- Public Methods
return (this.cause);
} Deprecated!Return the root cause of this exception (if any). |