Class PortableSQLException

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<java.lang.Throwable>
    Direct Known Subclasses:
    DuplicateKeyException, StaleConnectionException

    public abstract class PortableSQLException
    extends java.sql.SQLException
    Abtract base class for Portability Layer generic exception hierarchy; the Portability Layer attempts to map database-specific exceptions into one of the subclasses of PortableSQLException. Mapping is typically performed based on the error code contained in the original exception, though other mechanisms may be used, depending on the behavior of the database.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PortableSQLException​(java.lang.String reason, java.lang.String state, int errCode)  
    • Method Summary

      • Methods inherited from class java.sql.SQLException

        getErrorCode, getNextException, getSQLState, iterator, setNextException
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

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

        forEach, spliterator
    • Constructor Detail

      • PortableSQLException

        public PortableSQLException​(java.lang.String reason,
                                    java.lang.String state,
                                    int errCode)