Save This Page
Home » commons-dbcp-1.2.2-src » org.apache.commons » dbcp » [javadoc | source]
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.

Field Summary
protected  Throwable cause    The root cause of this exception (typically an SQLException but this is not required). 
Constructor:
 public DbcpException() 
 public DbcpException(String message) 
    Construct a new runtime exception with the specified detail message.
    Parameters:
    message - The detail message for this exception
 public DbcpException(Throwable 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) 
    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
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.dbcp.DbcpException Detail:
 public Throwable getCause() 
      Deprecated!
    Return the root cause of this exception (if any).