Class StaleConnectionException

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

    public class StaleConnectionException
    extends PortableSQLException
    Indicates that the connection has somehow become damaged and should be discarded (e.g. due to database crash or connectivity problem). Work done on the connection has been (will be) lost, but the system may be able to continue by obtaining a new connection and redoing the work.
    See Also:
    Serialized Form
    • 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

      • StaleConnectionException

        public StaleConnectionException​(java.sql.SQLException nativeException)
      • StaleConnectionException

        public StaleConnectionException​(java.lang.String reason)
      • StaleConnectionException

        public StaleConnectionException()
      • StaleConnectionException

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