public class SQLTransientConnectionException
extends SQLTransientException
| java.lang.Object | |||||
| java.lang.Throwable | |||||
| java.lang.Exception | |||||
| java.sql.SQLException | |||||
| java.sql.SQLTransientException | |||||
| java.sql.SQLTransientConnectionException | |||||
SQLState类值为' 08 '的SQLException的子类,或供应商指定的条件下。 这表示如果在没有任何应用程序级别更改的情况下重试操作,失败的连接操作可能会成功。
请参阅您的驱动程序供应商文档,以 异常可能引发此 异常的供应商指定的条件。
Public constructors |
|
|---|---|
SQLTransientConnectionException() 构造一个 |
|
SQLTransientConnectionException(String reason) 用给定的 |
|
SQLTransientConnectionException(String reason, String SQLState) 使用给定的 |
|
SQLTransientConnectionException(String reason, String SQLState, int vendorCode) 构造一个 |
|
SQLTransientConnectionException(Throwable cause) 用给定的 |
|
SQLTransientConnectionException(String reason, Throwable cause) 用给定的 |
|
SQLTransientConnectionException(String reason, String SQLState, Throwable cause) 构造一个 |
|
SQLTransientConnectionException(String reason, String SQLState, int vendorCode, Throwable cause) 构造一个 |
|
继承方法(Inherited methods) |
|
|---|---|
java.sql.SQLException
|
|
java.lang.Throwable
|
|
java.lang.Object
|
|
java.lang.Iterable
|
|
SQLTransientConnectionException ()
构造一个SQLTransientConnectionException对象。 的reason , SQLState被初始化为null和供应商代码被初始化为0。 cause没有初始化,随后可以通过向一个呼叫进行初始化initCause(java.lang.Throwable)方法。
SQLTransientConnectionException (String reason)
用给定的reason构造一个SQLTransientConnectionException对象。 SQLState初始化为null ,并且供应商代码初始化为0. cause未初始化,并可能随后通过调用initCause(java.lang.Throwable)方法进行初始化。
| 参数(Parameters) | |
|---|---|
reason |
String: a description of the exception |
SQLTransientConnectionException (String reason, String SQLState)
用给定的reason和SQLState构造一个SQLTransientConnectionException对象。 cause未初始化,并可能随后通过调用initCause(java.lang.Throwable)方法进行初始化。 供应商代码初始化为0。
| 参数(Parameters) | |
|---|---|
reason |
String: a description of the exception |
SQLState |
String: an XOPEN or SQL:2003 code identifying the exception |
SQLTransientConnectionException (String reason, String SQLState, int vendorCode)
构造一个SQLTransientConnectionException与给定对象reason , SQLState和vendorCode 。 cause未初始化,并可能随后通过调用initCause(java.lang.Throwable)方法进行初始化。
| 参数(Parameters) | |
|---|---|
reason |
String: a description of the exception |
SQLState |
String: an XOPEN or SQL:2003 code identifying the exception |
vendorCode |
int: a database vendor specific exception code |
SQLTransientConnectionException (Throwable cause)
用给定的cause构造一个SQLTransientConnectionException对象。 该SQLState被初始化为null和供应商代码被初始化为0。 reason被初始化为null如果cause==null或cause.toString()如果cause!=null 。
| 参数(Parameters) | |
|---|---|
cause |
Throwable: 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. |
SQLTransientConnectionException (String reason, Throwable cause)
用给定的reason和cause构造一个SQLTransientConnectionException对象。 SQLState初始化为null ,供应商代码初始化为0。
| 参数(Parameters) | |
|---|---|
reason |
String: a description of the exception. |
cause |
Throwable: 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. |
SQLTransientConnectionException (String reason, String SQLState, Throwable cause)
构造一个SQLTransientConnectionException与给定对象reason , SQLState和cause 。 供应商代码初始化为0。
| 参数(Parameters) | |
|---|---|
reason |
String: a description of the exception. |
SQLState |
String: an XOPEN or SQL:2003 code identifying the exception |
cause |
Throwable: 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. |
SQLTransientConnectionException (String reason, String SQLState, int vendorCode, Throwable cause)
构造一个 SQLTransientConnectionException与给定对象 reason , SQLState , vendorCode和 cause 。
| 参数(Parameters) | |
|---|---|
reason |
String: a description of the exception |
SQLState |
String: an XOPEN or SQL:2003 code identifying the exception |
vendorCode |
int: a database vendor-specific exception code |
cause |
Throwable: 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. |