@Published public class DbAccessException extends RuntimeException
java.sql.SQLException
が発生した場合、本クラスでラップし再送出すること。java.sql.SQLException
,
直列化された形式コンストラクタと説明 |
---|
DbAccessException(String message,
SQLException e)
本クラスのインスタンスを生成する。
|
修飾子とタイプ | メソッドと説明 |
---|---|
int |
getErrorCode()
エラーコードを取得する。
|
String |
getSQLState()
SQLState値を取得する。
|
public DbAccessException(String message, SQLException e)
message
- エラーメッセージe
- データベースアクセス時に送出されたSQLException
オブジェクトpublic final String getSQLState()
java.sql.SQLException#getSQLState()
public final int getErrorCode()
java.sql.SQLException#getErrorCode()