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

Deprecated. Use '(SQLException) new SQLException(msg).initCause(e)' instead; this class will be removed in DBCP 2.0

public class SQLNestedException
extends SQLException

A SQLException subclass containing another Throwable

Version:
$Revision: 892307 $ $Date: 2013-12-31 23:27:28 +0000 (Tue, 31 Dec 2013) $
Author:
Dirk Verbeeck
See Also:
Serialized Form

Constructor Summary
SQLNestedException(String msg, Throwable cause)
          Deprecated. Constructs a new SQLNestedException with specified detail message and nested Throwable.
 
Method Summary
 
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, 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)
Deprecated. 
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


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.