org.apache.commons.dbcp

Class DbcpException

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) $

Author: Jonathan Fuerth Dan Fraser

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
ThrowablegetCause()
Return the root cause of this exception (if any).

Constructor Detail

DbcpException

public DbcpException()
Construct a new runtime exception with null as its detail message.

DbcpException

public DbcpException(String message)
Construct a new runtime exception with the specified detail message.

Parameters: message The detail message for this exception

DbcpException

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

DbcpException

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

Method Detail

getCause

public Throwable getCause()
Return the root cause of this exception (if any).
Copyright © 2001-2004 Apache Software Foundation. Documenation generated December 10 2007.