org.apache.commons.dbcp
Class SQLNestedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
org.apache.commons.dbcp.SQLNestedException
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Iterable<java.lang.Throwable>
public class SQLNestedException
- extends java.sql.SQLException
A SQLException subclass containing another Throwable
- Version:
- $Revision: 1.8 $ $Date: 2004/02/28 12:18:17 $
- Author:
- Dirk Verbeeck
- See Also:
- Serialized Form
Constructor Summary |
SQLNestedException(java.lang.String msg,
java.lang.Throwable cause)
Constructs a new SQLNestedException with specified
detail message and nested Throwable . |
Methods inherited from class java.sql.SQLException |
getErrorCode, getNextException, getSQLState, iterator, setNextException |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SQLNestedException
public SQLNestedException(java.lang.String msg,
java.lang.Throwable cause)
- Constructs a new
SQLNestedException
with specified
detail message and nested Throwable
.
- Parameters:
msg
- the error messagecause
- the exception or error that caused this exception to be
thrown
getCause
public java.lang.Throwable getCause()
- Overrides:
getCause
in class java.lang.Throwable
printStackTrace
public void printStackTrace(java.io.PrintStream s)
- Overrides:
printStackTrace
in class java.lang.Throwable
printStackTrace
public void printStackTrace(java.io.PrintWriter s)
- Overrides:
printStackTrace
in class java.lang.Throwable
Copyright © 2001-2003 Apache Software Foundation. Documenation generated January 7 2010.