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
- public class SQLNestedException
- extends java.sql.SQLException
A SQLException subclass containing another Throwable
- Version:
- $Id: SQLNestedException.java,v 1.5 2003/10/09 21:04:44 rdonkin Exp $
- 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, setNextException |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getMessage, getStackTrace, initCause, 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
getLocalizedMessage
public java.lang.String getLocalizedMessage()
- Overrides:
getLocalizedMessage
in class java.lang.Throwable
printStackTrace
public void printStackTrace()
- Overrides:
printStackTrace
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 October 27 2003.