org.logicalcobwebs.proxool
Class FatalSQLException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
org.logicalcobwebs.proxool.FatalSQLException
- All Implemented Interfaces:
- java.io.Serializable
public class FatalSQLException
- extends java.sql.SQLException
A type of SQLException that has been defined as fatal. It contains
the original
plain SQLException
just in case you need it.
- Version:
- $Revision: 1.3 $, $Date: 2003/09/10 22:21:04 $
- Author:
- billhorsman, $Author: chr32 $ (current maintainer)
- See Also:
ConnectionPoolDefinitionIF.getFatalSqlExceptions()
,
Serialized Form
Field Summary |
private java.sql.SQLException |
cause
|
Methods inherited from class java.sql.SQLException |
getErrorCode, getNextException, getSQLState, setNextException |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, 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 |
cause
private java.sql.SQLException cause
- See Also:
getOriginalSQLException()
FatalSQLException
public FatalSQLException(java.sql.SQLException cause)
FatalSQLException
public FatalSQLException(java.sql.SQLException cause,
java.lang.String reason,
java.lang.String sqlState)
- Parameters:
cause
- the SQLException that was detected as being fatalreason
- see super#SQLException(java.lang.String, java.lang.String)
sqlState
- see super#SQLException(java.lang.String, java.lang.String)
getCause
public java.lang.Throwable getCause()
- Same as
getOriginalSQLException()
- Overrides:
getCause
in class java.lang.Throwable
- See Also:
Throwable.getCause()
getOriginalSQLException
public java.sql.SQLException getOriginalSQLException()
- Get the SQLException that was detected as being fatal
- Returns:
- the original SQLException