|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.sql.SQLException
java.sql.SQLNonTransientException
public class SQLNonTransientException
重試相同操作將失敗(除非糾正了 SQLException 的 cause)的情況下拋出的 SQLException 子類別。
| 建構子摘要 | |
|---|---|
SQLNonTransientException()
建構一個 SQLNonTransientException 物件。 |
|
SQLNonTransientException(String reason)
建構一個帶有給定 reason 的 SQLNonTransientException 物件。 |
|
SQLNonTransientException(String reason,
String SQLState)
建構一個帶有給定 reason 和 SQLState 的 SQLNonTransientException 物件。 |
|
SQLNonTransientException(String reason,
String SQLState,
int vendorCode)
建構一個帶有給定 reason、SQLState 和 vendorCode 的 SQLNonTransientException 物件。 |
|
SQLNonTransientException(String reason,
String SQLState,
int vendorCode,
Throwable cause)
建構一個帶有給定 reason、SQLState、vendorCode 和 cause 的 SQLNonTransientException 物件。 |
|
SQLNonTransientException(String reason,
String SQLState,
Throwable cause)
建構一個帶有給定 reason、SQLState 和 cause 的 SQLNonTransientException 物件。 |
|
SQLNonTransientException(String reason,
Throwable cause)
建構一個帶有給定 reason 和 cause 的 SQLTransientException 物件。 |
|
SQLNonTransientException(Throwable cause)
建構一個帶有給定 cause 的 SQLNonTransientException 物件。 |
|
| 方法摘要 |
|---|
| 從類別 java.sql.SQLException 繼承的方法 |
|---|
getErrorCode, getNextException, getSQLState, iterator, setNextException |
| 從類別 java.lang.Throwable 繼承的方法 |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public SQLNonTransientException()
SQLNonTransientException 物件。reason 和 SQLState 初始化為 null,供應商程式碼初始化為 0。
cause 沒有初始化,隨後可以調用 Throwable.initCause(java.lang.Throwable) 方法初始化。
public SQLNonTransientException(String reason)
reason 的 SQLNonTransientException 物件。 SQLState 初始化為 null,供應商程式碼初始化為 0。
cause 沒有初始化,隨後可以調用 Throwable.initCause(java.lang.Throwable) 方法初始化。
reason - 對異常的描述
public SQLNonTransientException(String reason,
String SQLState)
reason 和 SQLState 的 SQLNonTransientException 物件。
cause 沒有初始化,隨後可以調用 Throwable.initCause(java.lang.Throwable) 方法初始化。供應商程式碼初始化為 0。
reason - 對異常的描述SQLState - 標識異常的 XOPEN 或 SQL:2003 程式碼
public SQLNonTransientException(String reason,
String SQLState,
int vendorCode)
reason、SQLState 和 vendorCode 的 SQLNonTransientException 物件。
cause 沒有初始化,隨後可以調用 Throwable.initCause(java.lang.Throwable) 方法初始化。
reason - 對異常的描述SQLState - 標識異常的 XOPEN 或 SQL:2003 程式碼vendorCode - 特定於資料庫供應商的異常程式碼public SQLNonTransientException(Throwable cause)
cause 的 SQLNonTransientException 物件。SQLState 初始化為 null,供應商程式碼初始化為 0。如果 cause==null,那麼 reason 初始化為 null;如果 cause!=null,則初始化為 cause.toString()。
cause - 此 SQLException 的底層原因(保存此原因,以供以後通過 getCause() 方法獲取);可以為 null,表示 cause 不存在或未知。
public SQLNonTransientException(String reason,
Throwable cause)
reason 和 cause 的 SQLTransientException 物件。SQLState 初始化為 null,供應商程式碼初始化為 0。
reason - 對異常的描述。cause - 此 SQLException 的底層原因(保存此原因,以供以後通過 getCause() 方法獲取);可以為 null,表示 cause 不存在或未知。
public SQLNonTransientException(String reason,
String SQLState,
Throwable cause)
reason、SQLState 和 cause 的 SQLNonTransientException 物件。供應商程式碼初始化為 0。
reason - 對異常的描述。SQLState - 標識異常的 XOPEN 或 SQL:2003 程式碼cause - 此 SQLException 的底層原因(保存此原因,以供以後通過 getCause() 方法獲取);可以為 null,表示 cause 不存在或未知。
public SQLNonTransientException(String reason,
String SQLState,
int vendorCode,
Throwable cause)
reason、SQLState、vendorCode 和 cause 的 SQLNonTransientException 物件。
reason - 對異常的描述SQLState - 標識異常的 XOPEN 或 SQL:2003 程式碼vendorCode - 特定於資料庫供應商的異常程式碼cause - 此 SQLException 的底層原因(保存此原因,以供以後通過 getCause() 方法獲取);可以為 null,表示 cause 不存在或未知。
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。