Package com.ibm.websphere.ce.cm
Class ConnectionWaitTimeoutException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.sql.SQLException
-
- java.sql.SQLTransientException
-
- java.sql.SQLTransientConnectionException
-
- com.ibm.websphere.ce.cm.ConnectionWaitTimeoutException
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<java.lang.Throwable>
public class ConnectionWaitTimeoutException extends java.sql.SQLTransientConnectionExceptionUsed 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 aConnectionWaitTimeoutExceptionobject.ConnectionWaitTimeoutException(java.lang.String reason)Constructs aConnectionWaitTimeoutExceptionobject with a givenreason.ConnectionWaitTimeoutException(java.lang.String reason, java.lang.String SQLState)Constructs aConnectionWaitTimeoutExceptionobject with a givenreasonandSQLState.ConnectionWaitTimeoutException(java.lang.String reason, java.lang.String SQLState, int vendorCode)Constructs aConnectionWaitTimeoutExceptionobject with a givenreason,SQLStateandvendorCode.ConnectionWaitTimeoutException(java.lang.String reason, java.lang.String SQLState, int vendorCode, java.lang.Throwable cause)Constructs aConnectionWaitTimeoutExceptionobject with a givenreason,SQLState,vendorCodeandcause.ConnectionWaitTimeoutException(java.lang.String reason, java.lang.String SQLState, java.lang.Throwable cause)Constructs aConnectionWaitTimeoutExceptionobject with a givenreason,SQLStateandcause.ConnectionWaitTimeoutException(java.lang.String reason, java.lang.Throwable cause)Constructs aConnectionWaitTimeoutExceptionobject with a givenreasonandcause.ConnectionWaitTimeoutException(java.lang.Throwable cause)Constructs aConnectionWaitTimeoutExceptionobject with a givencause.
-
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
-
-
-
-
Constructor Detail
-
ConnectionWaitTimeoutException
public ConnectionWaitTimeoutException()
Constructs aConnectionWaitTimeoutExceptionobject.The
reasonandSQLStateare initialized tonulland the vendor code is initialized to 0.
-
ConnectionWaitTimeoutException
public ConnectionWaitTimeoutException(java.lang.String reason)
Constructs aConnectionWaitTimeoutExceptionobject with a givenreason.The
SQLStateis initialized tonulland 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 aConnectionWaitTimeoutExceptionobject with a givenreasonandSQLState.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 aConnectionWaitTimeoutExceptionobject with a givenreason,SQLStateandvendorCode.- 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 aConnectionWaitTimeoutExceptionobject with a givencause.The
SQLStateis initialized tonulland the vendor code is initialized to 0.The
reasonis initialized tonullifcause==nullor tocause.toString()ifcause!=null.- Parameters:
cause- the underlying reason for thisSQLException(which is saved for later retrieval by thegetCause()method); may be null indicating the cause is non-existent or unknown.
-
ConnectionWaitTimeoutException
public ConnectionWaitTimeoutException(java.lang.String reason, java.lang.Throwable cause)Constructs aConnectionWaitTimeoutExceptionobject with a givenreasonandcause.The
SQLStateis initialized tonulland the vendor code is initialized to 0.- Parameters:
reason- a description of the exception.cause- the underlying reason for thisSQLException(which is saved for later retrieval by thegetCause()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 aConnectionWaitTimeoutExceptionobject with a givenreason,SQLStateandcause.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 thisSQLException(which is saved for later retrieval by thegetCause()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 aConnectionWaitTimeoutExceptionobject with a givenreason,SQLState,vendorCodeandcause.- 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 thisSQLException(which is saved for later retrieval by thegetCause()method); may be null indicating the cause is non-existent or unknown.
-
-