|
Java プラットフォーム 1.2 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.sql.SQLException
データベースアクセスエラーに関する情報を提供する例外です。
各 SQLException は次のような情報を提供します。
getMesage メソッドにより使用できる
| コンストラクタの概要 | |
SQLException()
SQLException オブジェクトを構築します。 |
|
SQLException(String reason)
指定された reason で SQLException オブジェクトを構築します。 |
|
SQLException(String reason,
String SQLState)
指定された reason と SQLState で SQLException オブジェクトを構築します。 |
|
SQLException(String reason,
String SQLState,
int vendorCode)
完全指定の SQLException オブジェクトを構築します。 |
|
| メソッドの概要 | |
int |
getErrorCode()
この SQLException オブジェクトのベンダー固有の例外コードを取得します。 |
SQLException |
getNextException()
この SQLException オブジェクトにチェーンされた例外を取得します。 |
String |
getSQLState()
この SQLException オブジェクトの SQLState を取得します。 |
void |
setNextException(SQLException ex)
チェーンの最後に SQLException オブジェクトを追加します。 |
| クラス java.lang.Throwable から継承したメソッド |
fillInStackTrace,
getLocalizedMessage,
getMessage,
printStackTrace,
printStackTrace,
printStackTrace,
toString |
| クラス java.lang.Object から継承したメソッド |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| コンストラクタの詳細 |
public SQLException(String reason,
String SQLState,
int vendorCode)
SQLException オブジェクトを構築します。reason - 例外の説明SQLState - 例外を識別する XOPEN コードvendorCode - データベースベンダー固有の例外コード
public SQLException(String reason,
String SQLState)
SQLException オブジェクトを構築します。vendorCode のデフォルトは 0 に設定されます。reason - 例外の説明SQLState - 例外を識別する XOPEN コードpublic SQLException(String reason)
SQLException オブジェクトを構築します。 SQLState のデフォルトは null、vendorCode のデフォルトは 0 にそれぞれ設定されます。reason - 例外の説明public SQLException()
SQLException オブジェクトを構築します。理由を示す値のデフォルトは null、SQLState のデフォルトは null、vendorCode のデフォルトは 0 にそれぞれ設定されます。| メソッドの詳細 |
public String getSQLState()
SQLException オブジェクトの SQLState を取得します。public int getErrorCode()
SQLException オブジェクトのベンダー固有の例外コードを取得します。public SQLException getNextException()
SQLException オブジェクトにチェーンされた例外を取得します。public void setNextException(SQLException ex)
SQLException オブジェクトを追加します。ex - SQLException チェーンの最後に追加される新しい例外
|
Java プラットフォーム 1.2 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||