クラス ScriptStatementFailedException
java.lang.ObjectSE
java.lang.ThrowableSE
java.lang.ExceptionSE
java.lang.RuntimeExceptionSE
org.springframework.core.NestedRuntimeException
org.springframework.dao.DataAccessException
org.springframework.data.cassandra.core.cql.session.init.ScriptException
org.springframework.data.cassandra.core.cql.session.init.ScriptStatementFailedException
- 実装されたすべてのインターフェース:
SerializableSE
CQL スクリプト内のステートメントがターゲットデータベースに対して実行中に失敗した場合に、
ScriptUtils
によってスローされます。- 導入:
- 3.0
- 作成者:
- Mark Paluch
- 関連事項:
コンストラクターのサマリー
コンストラクターコンストラクター説明ScriptStatementFailedException
(StringSE stmt, int stmtNumber, EncodedResource encodedResource, ThrowableSE cause) 新しいScriptStatementFailedException
を作成します。メソッドのサマリー
修飾子と型メソッド説明static StringSE
buildErrorMessage
(StringSE stmt, int stmtNumber, EncodedResource encodedResource) 指定された引数に基づいて、CQL スクリプトの実行失敗に関するエラーメッセージを作成します。クラス org.springframework.core.NestedRuntimeException から継承されたメソッド
contains, getMostSpecificCause, getRootCause
クラス java.lang.ThrowableSE から継承されたメソッド
addSuppressedSE, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCauseSE, printStackTrace, printStackTraceSE, printStackTraceSE, setStackTraceSE, toString
コンストラクターの詳細
ScriptStatementFailedException
public ScriptStatementFailedException(StringSE stmt, int stmtNumber, EncodedResource encodedResource, ThrowableSE cause) 新しいScriptStatementFailedException
を作成します。- パラメーター:
stmt
- 失敗した実際の CQL ステートメント。stmtNumber
- CQL スクリプト内のステートメント番号 (つまり、リソース内に存在する n 番目のステートメント)。encodedResource
- CQL ステートメントが読み取られたリソース。cause
- 根本的な原因。
メソッドの詳細
buildErrorMessage
public static StringSE buildErrorMessage(StringSE stmt, int stmtNumber, EncodedResource encodedResource) 指定された引数に基づいて、CQL スクリプトの実行失敗に関するエラーメッセージを作成します。- パラメーター:
stmt
- 失敗した実際の CQL ステートメント。stmtNumber
- CQL スクリプト内のステートメント番号 (つまり、リソース内に存在する n 番目のステートメント)。encodedResource
- CQL 文が読み取られたリソース- 戻り値:
- 例外の詳細メッセージやログに適したエラーメッセージ。