Package org.apache.commons.dbcp
Class DbcpException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.commons.dbcp.DbcpException
-
- All Implemented Interfaces:
java.io.Serializable
public class DbcpException extends java.lang.RuntimeExceptionDeprecated.This will be removed in a future version of DBCP.Subclass of
RuntimeExceptionthat can be used to wrap aSQLExceptionusing the "root cause" pattern of JDK 1.4 exceptions, but without requiring a 1.4 runtime environment.- Version:
- $Revision: 883425 $ $Date: 2009-11-23 12:19:43 -0500 (Mon, 23 Nov 2009) $
- Author:
- Jonathan Fuerth, Dan Fraser
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ThrowablecauseDeprecated.The root cause of this exception (typically anSQLExceptionbut this is not required).
-
Constructor Summary
Constructors Constructor Description DbcpException()Deprecated.Construct a new runtime exception withnullas 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()).
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.ThrowablegetCause()Deprecated.Return the root cause of this exception (if any).
-
-
-
Constructor Detail
-
DbcpException
public DbcpException()
Deprecated.Construct a new runtime exception withnullas its detail message.
-
DbcpException
public DbcpException(java.lang.String message)
Deprecated.Construct a new runtime exception with the specified detail message.- Parameters:
message- The detail message for this exception
-
DbcpException
public DbcpException(java.lang.String message, java.lang.Throwable cause)Deprecated.Construct a new runtime exception with the specified detail message and cause.- Parameters:
message- The detail message for this exceptioncause- The root cause for this exception
-
DbcpException
public 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()).- Parameters:
cause- The root cause for this exception
-
-