Class ConnectionWaitTimeoutException

All Implemented Interfaces:
Serializable, Iterable<Throwable>

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

    • 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(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(String reason, 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(String reason, 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(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(String reason, 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(String reason, String SQLState, 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(String reason, String SQLState, int vendorCode, 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.