org.apache.commons.dbcp
Class DbcpException
RuntimeException
org.apache.commons.dbcp.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.
$Revision: 1.5 $ $Date: 2004/02/28 11:48:04 $- Jonathan Fuerth
- Dan Fraser
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()) .
|
Throwable | getCause() - Return the root cause of this exception (if any).
|
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.
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.
message
- The detail message for this exceptioncause
- 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())
.
cause
- The root cause for this exception
getCause
public Throwable getCause()
Return the root cause of this exception (if any).
Copyright © 2001-2003 Apache Software Foundation. Documenation generated March 27 2007.