public class SQLNonTransientException
extends SQLException
java.lang.Object | ||||
↳ | java.lang.Throwable | |||
↳ | java.lang.Exception | |||
↳ | java.sql.SQLException | |||
↳ | java.sql.SQLNonTransientException |
Known Direct Subclasses |
SQLException
的子类当同一操作的重试失败除非 SQLException
的原因得到纠正的情况下抛出。
Public constructors |
|
---|---|
SQLNonTransientException() 构造一个 |
|
SQLNonTransientException(String reason) 用给定的 |
|
SQLNonTransientException(String reason, String SQLState) 用给定的 |
|
SQLNonTransientException(String reason, String SQLState, int vendorCode) 构造一个 |
|
SQLNonTransientException(Throwable cause) 使用给定的 |
|
SQLNonTransientException(String reason, Throwable cause) 用给定的 |
|
SQLNonTransientException(String reason, String SQLState, Throwable cause) 构造一个 |
|
SQLNonTransientException(String reason, String SQLState, int vendorCode, Throwable cause) 构造一个 |
Inherited methods |
|
---|---|
From class java.sql.SQLException
|
|
From class java.lang.Throwable
|
|
From class java.lang.Object
|
|
From interface java.lang.Iterable
|
SQLNonTransientException ()
构造一个SQLNonTransientException
对象。 的reason
, SQLState
被初始化为null
和供应商代码被初始化为0。 cause
没有初始化,随后可以通过向一个呼叫进行初始化initCause(java.lang.Throwable)
方法。
SQLNonTransientException (String reason)
用给定的reason
构造一个SQLNonTransientException
对象。 SQLState
初始化为null
,供应商代码初始化为cause
未初始化,随后可以通过调用initCause(java.lang.Throwable)
方法初始化。
Parameters | |
---|---|
reason |
String : a description of the exception |
SQLNonTransientException (String reason, String SQLState)
使用给定的reason
和SQLState
构造一个SQLNonTransientException
对象。 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 |
SQLNonTransientException (String reason, String SQLState, int vendorCode)
构造一个SQLNonTransientException
与给定对象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 |
SQLNonTransientException (Throwable cause)
Constructs a SQLNonTransientException
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 |
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. |
SQLNonTransientException (String reason, Throwable cause)
用给定的reason
和cause
构造一个SQLTransientException
对象。 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. |
SQLNonTransientException (String reason, String SQLState, Throwable cause)
构造一个SQLNonTransientException
与给定对象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. |
SQLNonTransientException (String reason, String SQLState, int vendorCode, Throwable cause)
构造一个 SQLNonTransientException
与给定对象 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. |