org.apache.commons.dbcp
public class DbcpException extends RuntimeException
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.
Version: $Revision: 479137 $ $Date: 2006-11-25 08:51:48 -0700 (Sat, 25 Nov 2006) $
Constructor Summary | |
---|---|
DbcpException()
Construct a new runtime exception with null as its
detail message. | |
DbcpException(String message)
Construct a new runtime exception with the specified detail message.
| |
DbcpException(String message, Throwable cause)
Construct a new runtime exception with the specified detail message
and cause.
| |
DbcpException(Throwable cause)
Construct a new runtime exception with the specified cause and a
detail message of (cause == null ? null : cause.toString()) .
|
Method Summary | |
---|---|
Throwable | getCause()
Return the root cause of this exception (if any). |
null
as its
detail message.Parameters: message The detail message for this exception
Parameters: message The detail message for this exception cause The root cause for this exception
(cause == null ? null : cause.toString())
.
Parameters: cause The root cause for this exception