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