Package 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
,java.lang.Iterable<java.lang.Throwable>
public class FatalSQLException extends java.sql.SQLException
A type of SQLException that has been defined as fatal. It contains theoriginal
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
-
-
Constructor Summary
Constructors Constructor Description FatalSQLException(java.sql.SQLException cause)
FatalSQLException(java.sql.SQLException cause, java.lang.String reason, java.lang.String sqlState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Throwable
getCause()
Same asgetOriginalSQLException()
java.sql.SQLException
getOriginalSQLException()
Get the SQLException that was detected as being fatal-
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextException
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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 {@link super#SQLException(java.lang.String, java.lang.String)}sqlState
- see {@link super#SQLException(java.lang.String, java.lang.String)}
-
-
Method Detail
-
getCause
public java.lang.Throwable getCause()
Same asgetOriginalSQLException()
- Overrides:
getCause
in classjava.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
-
-