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:
Serializable,Iterable<Throwable>
Used as a chained exception when unable to allocate a connection before the connection timeout is reached.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aConnectionWaitTimeoutExceptionobject.ConnectionWaitTimeoutException(String reason) Constructs aConnectionWaitTimeoutExceptionobject with a givenreason.ConnectionWaitTimeoutException(String reason, String SQLState) Constructs aConnectionWaitTimeoutExceptionobject with a givenreasonandSQLState.ConnectionWaitTimeoutException(String reason, String SQLState, int vendorCode) Constructs aConnectionWaitTimeoutExceptionobject with a givenreason,SQLStateandvendorCode.ConnectionWaitTimeoutException(String reason, String SQLState, int vendorCode, Throwable cause) Constructs aConnectionWaitTimeoutExceptionobject with a givenreason,SQLState,vendorCodeandcause.ConnectionWaitTimeoutException(String reason, String SQLState, Throwable cause) Constructs aConnectionWaitTimeoutExceptionobject with a givenreason,SQLStateandcause.ConnectionWaitTimeoutException(String reason, Throwable cause) Constructs aConnectionWaitTimeoutExceptionobject with a givenreasonandcause.Constructs aConnectionWaitTimeoutExceptionobject with a givencause. -
Method Summary
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextExceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ConnectionWaitTimeoutException
public ConnectionWaitTimeoutException()Constructs aConnectionWaitTimeoutExceptionobject.The
reasonandSQLStateare initialized tonulland the vendor code is initialized to 0. -
ConnectionWaitTimeoutException
Constructs aConnectionWaitTimeoutExceptionobject with a givenreason.The
SQLStateis initialized tonulland the vendor code is initialized to 0.- Parameters:
reason- a description of the exception.
-
ConnectionWaitTimeoutException
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
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
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
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
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(String reason, String SQLState, int vendorCode, 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.
-