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:
Serializable, Iterable<Throwable>

public class SQLNestedException
extends SQLException

A SQLException subclass containing another Throwable

Version:
$Revision: 479137 $ $Date: 2006-11-25 08:51:48 -0700 (Sat, 25 Nov 2006) $
Author:
Dirk Verbeeck
See Also:
Serialized Form

Constructor Summary
SQLNestedException(String msg, Throwable cause)
          Constructs a new SQLNestedException with specified detail message and nested Throwable.
 
Method Summary
 Throwable getCause()
           
 void printStackTrace(PrintStream s)
           
 void printStackTrace(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(String msg,
                          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 Throwable getCause()
Overrides:
getCause in class Throwable

printStackTrace

public void printStackTrace(PrintStream s)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter s)
Overrides:
printStackTrace in class Throwable


Copyright © 2001-2004 Apache Software Foundation. Documenation generated January 26 2009.