org.apache.commons.dbcp
Class SQLNestedException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.sql.SQLException
              extended byorg.apache.commons.dbcp.SQLNestedException
All Implemented Interfaces:
Serializable

public class SQLNestedException
extends SQLException

A SQLException subclass containing another Throwable

Version:
$Revision: 892307 $ $Date: 2014-01-01 00:27:28 +0100 (Wed, 01 Jan 2014) $
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, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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()

printStackTrace

public void printStackTrace(PrintStream s)

printStackTrace

public void printStackTrace(PrintWriter s)


Copyright © The Apache Software Foundation. All Rights Reserved.