13.5 BatchSQLExceptionクラス
BatchSQLException
クラスは、バッチ処理エラーを処理するメソッドを提供します。BatchSQLException
クラスはSQLExceptionクラスから導出されるため、すべてのBatchSQLException
インスタンスは、表13-6に示したメソッド以外に、SQLException
のすべてのメソッドをサポートします。
関連項目:
表13-6 BatchSQLExceptionメソッドの概要
メソッド | 概要 |
---|---|
例外を戻します。 |
|
挿入または更新が失敗した行数を戻します。 |
|
挿入または更新エラーのある行番号を戻します。 |
13.5.1 getException()
指定されたindex
に一致する例外を戻します。
構文
SQLException getSQLException ( unsigned int index) const;
パラメータ | 説明 |
---|---|
index |
バッチ・プロセスによって戻されたエラー・リストに対する索引を指定します。 |
13.5.2 getFailedRowCount()
INSERT文またはUPDATE文が失敗した行の数を戻します。
構文
unsigned int getFailedRowCount( ) const;