org.apache.commons.dbcp
Class SQLNestedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.sql.SQLException
              extended by 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.
 
Method Summary
 java.lang.Throwable getCause()
           
 void printStackTrace(java.io.PrintStream s)
           
 void printStackTrace(java.io.PrintWriter s)
           
 
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
 

Constructor Detail

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 message
cause - the exception or error that caused this exception to be thrown
Method Detail

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 November 23 2010.