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.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 aConnectionWaitTimeoutException
object.ConnectionWaitTimeoutException(java.lang.String reason)
Constructs aConnectionWaitTimeoutException
object with a givenreason
.ConnectionWaitTimeoutException(java.lang.String reason, java.lang.String SQLState)
Constructs aConnectionWaitTimeoutException
object with a givenreason
andSQLState
.ConnectionWaitTimeoutException(java.lang.String reason, java.lang.String SQLState, int vendorCode)
Constructs aConnectionWaitTimeoutException
object with a givenreason
,SQLState
andvendorCode
.ConnectionWaitTimeoutException(java.lang.String reason, java.lang.String SQLState, int vendorCode, java.lang.Throwable cause)
Constructs aConnectionWaitTimeoutException
object with a givenreason
,SQLState
,vendorCode
andcause
.ConnectionWaitTimeoutException(java.lang.String reason, java.lang.String SQLState, java.lang.Throwable cause)
Constructs aConnectionWaitTimeoutException
object with a givenreason
,SQLState
andcause
.ConnectionWaitTimeoutException(java.lang.String reason, java.lang.Throwable cause)
Constructs aConnectionWaitTimeoutException
object with a givenreason
andcause
.ConnectionWaitTimeoutException(java.lang.Throwable cause)
Constructs aConnectionWaitTimeoutException
object 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 aConnectionWaitTimeoutException
object.The
reason
andSQLState
are initialized tonull
and the vendor code is initialized to 0.
-
ConnectionWaitTimeoutException
public ConnectionWaitTimeoutException(java.lang.String reason)
Constructs aConnectionWaitTimeoutException
object with a givenreason
.The
SQLState
is initialized tonull
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 aConnectionWaitTimeoutException
object with a givenreason
andSQLState
.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 aConnectionWaitTimeoutException
object with a givenreason
,SQLState
andvendorCode
.- 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 aConnectionWaitTimeoutException
object with a givencause
.The
SQLState
is initialized tonull
and the vendor code is initialized to 0.The
reason
is initialized tonull
ifcause==null
or 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 aConnectionWaitTimeoutException
object with a givenreason
andcause
.The
SQLState
is initialized tonull
and 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 aConnectionWaitTimeoutException
object with a givenreason
,SQLState
andcause
.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 aConnectionWaitTimeoutException
object with a givenreason
,SQLState
,vendorCode
andcause
.- 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.
-
-