@Deprecated public class DbcpException extends 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 Throwable | causeDeprecated.  The root cause of this exception (typically an
  SQLExceptionbut this is not required). | 
| Constructor and Description | 
|---|
| DbcpException()Deprecated.  Construct a new runtime exception with  nullas its
 detail message. | 
| DbcpException(String message)Deprecated.  Construct a new runtime exception with the specified detail message. | 
| DbcpException(String message,
             Throwable cause)Deprecated.  Construct a new runtime exception with the specified detail message
 and cause. | 
| DbcpException(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 | 
|---|---|
| Throwable | getCause()Deprecated.  Return the root cause of this exception (if any). | 
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected Throwable cause
SQLException but this is not required).public DbcpException()
null as its
 detail message.public DbcpException(String message)
message - The detail message for this exceptionpublic DbcpException(String message, Throwable cause)
message - The detail message for this exceptioncause - The root cause for this exceptionpublic DbcpException(Throwable cause)
(cause == null ? null : cause.toString()).cause - The root cause for this exceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.