org.apache.commons.dbcp

Class DbcpException


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.

Version:
$Revision: 1.5 $ $Date: 2004/02/28 11:48:04 $

Authors:
Jonathan Fuerth
Dan Fraser

Constructor Summary

DbcpException()
Construct a new runtime exception with null as its detail message.
DbcpException(java.lang.String message)
Construct a new runtime exception with the specified detail message.
DbcpException(java.lang.String message, java.lang.Throwable cause)
Construct a new runtime exception with the specified detail message and cause.
DbcpException(java.lang.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).

Constructor Details

DbcpException

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


DbcpException

public DbcpException(java.lang.String message)
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)
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(java.lang.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 Details

getCause

public Throwable getCause()
Return the root cause of this exception (if any).


Copyright © 2001-2003 Apache Software Foundation. Documenation generated February 28 2005.