org.logicalcobwebs.proxool
Class FatalSQLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.sql.SQLException
              extended by 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

Constructor Summary
FatalSQLException(java.sql.SQLException cause)
           
FatalSQLException(java.sql.SQLException cause, java.lang.String reason, java.lang.String sqlState)
           
 
Method Summary
 java.lang.Throwable getCause()
          Same as getOriginalSQLException()
 java.sql.SQLException getOriginalSQLException()
          Get the SQLException that was detected as being fatal
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 fatal
reason - see super#SQLException(java.lang.String, java.lang.String)
sqlState - see super#SQLException(java.lang.String, java.lang.String)
Method Detail

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