spring-framework / org.springframework.jdbc.datasource.init / ScriptStatementFailedException

ScriptStatementFailedException

open class ScriptStatementFailedException : ScriptException

Thrown by ScriptUtils if a statement in an SQL script failed when executing it against the target database.

Author
Juergen Hoeller

Author
Sam Brannen

Since
3.0.5

Constructors

<init>

ScriptStatementFailedException(stmt: String, stmtNumber: Int, encodedResource: EncodedResource, cause: Throwable)

Construct a new ScriptStatementFailedException.

Functions

buildErrorMessage

open static fun buildErrorMessage(stmt: String, stmtNumber: Int, encodedResource: EncodedResource): String

Build an error message for an SQL script execution failure, based on the supplied arguments.