Class ConnectionWaitTimeoutException

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<java.lang.Throwable>

    public class ConnectionWaitTimeoutException
    extends java.sql.SQLTransientConnectionException
    Used as a chained exception when unable to allocate a connection before the connection timeout is reached.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ConnectionWaitTimeoutException()
      Constructs a ConnectionWaitTimeoutException object.
      ConnectionWaitTimeoutException​(java.lang.String reason)
      Constructs a ConnectionWaitTimeoutException object with a given reason.
      ConnectionWaitTimeoutException​(java.lang.String reason, java.lang.String SQLState)
      Constructs a ConnectionWaitTimeoutException object with a given reason and SQLState.
      ConnectionWaitTimeoutException​(java.lang.String reason, java.lang.String SQLState, int vendorCode)
      Constructs a ConnectionWaitTimeoutException object with a given reason, SQLState and vendorCode.
      ConnectionWaitTimeoutException​(java.lang.String reason, java.lang.String SQLState, int vendorCode, java.lang.Throwable cause)
      Constructs a ConnectionWaitTimeoutException object with a given reason, SQLState, vendorCode and cause.
      ConnectionWaitTimeoutException​(java.lang.String reason, java.lang.String SQLState, java.lang.Throwable cause)
      Constructs a ConnectionWaitTimeoutException object with a given reason, SQLState and cause.
      ConnectionWaitTimeoutException​(java.lang.String reason, java.lang.Throwable cause)
      Constructs a ConnectionWaitTimeoutException object with a given reason and cause.
      ConnectionWaitTimeoutException​(java.lang.Throwable cause)
      Constructs a ConnectionWaitTimeoutException object with a given cause.
    • 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

      • ConnectionWaitTimeoutException

        public ConnectionWaitTimeoutException()
        Constructs a ConnectionWaitTimeoutException object.

        The reason and SQLState are initialized to null and the vendor code is initialized to 0.

      • ConnectionWaitTimeoutException

        public ConnectionWaitTimeoutException​(java.lang.String reason)
        Constructs a ConnectionWaitTimeoutException object with a given reason.

        The SQLState is initialized to null and the vendor code is initialized to 0.

        Parameters:
        reason - a description of the exception.
      • ConnectionWaitTimeoutException

        public ConnectionWaitTimeoutException​(java.lang.String reason,
                                              java.lang.String SQLState)
        Constructs a ConnectionWaitTimeoutException object with a given reason and SQLState.

        The vendor code is initialized to 0.

        Parameters:
        reason - a description of the exception.
        SQLState - an XOPEN or SQL:2003 code identifying the exception.
      • ConnectionWaitTimeoutException

        public ConnectionWaitTimeoutException​(java.lang.String reason,
                                              java.lang.String SQLState,
                                              int vendorCode)
        Constructs a ConnectionWaitTimeoutException object with a given reason, SQLState and vendorCode.

        Parameters:
        reason - a description of the exception.
        SQLState - an XOPEN or SQL:2003 code identifying the exception.
        vendorCode - a database vendor specific exception code.
      • ConnectionWaitTimeoutException

        public ConnectionWaitTimeoutException​(java.lang.Throwable cause)
        Constructs a ConnectionWaitTimeoutException object with a given cause.

        The SQLState is initialized to null and the vendor code is initialized to 0.

        The reason is initialized to null if cause==null or to cause.toString() if cause!=null.

        Parameters:
        cause - the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.
      • ConnectionWaitTimeoutException

        public ConnectionWaitTimeoutException​(java.lang.String reason,
                                              java.lang.Throwable cause)
        Constructs a ConnectionWaitTimeoutException object with a given reason and cause.

        The SQLState is initialized to null and the vendor code is initialized to 0.

        Parameters:
        reason - a description of the exception.
        cause - the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.
      • ConnectionWaitTimeoutException

        public ConnectionWaitTimeoutException​(java.lang.String reason,
                                              java.lang.String SQLState,
                                              java.lang.Throwable cause)
        Constructs a ConnectionWaitTimeoutException object with a given reason, SQLState and cause.

        The vendor code is initialized to 0.

        Parameters:
        reason - a description of the exception.
        SQLState - an XOPEN or SQL:2003 code identifying the exception.
        cause - the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.
      • ConnectionWaitTimeoutException

        public ConnectionWaitTimeoutException​(java.lang.String reason,
                                              java.lang.String SQLState,
                                              int vendorCode,
                                              java.lang.Throwable cause)
        Constructs a ConnectionWaitTimeoutException object with a given reason, SQLState, vendorCode and cause.

        Parameters:
        reason - a description of the exception.
        SQLState - an XOPEN or SQL:2003 code identifying the exception.
        vendorCode - a database vendor-specific exception code.
        cause - the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.