Class 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 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

      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()
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • 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 {@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()
        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