public class ScriptStatementFailedException extends ScriptException
ScriptUtils if a statement in an SQL script failed when
executing it against the target database.| Constructor and Description |
|---|
ScriptStatementFailedException(java.lang.String stmt,
int stmtNumber,
EncodedResource encodedResource,
java.lang.Throwable cause)
Construct a new
ScriptStatementFailedException. |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
buildErrorMessage(java.lang.String stmt,
int stmtNumber,
EncodedResource encodedResource)
Build an error message for an SQL script execution failure,
based on the supplied arguments.
|
contains, getMessage, getMostSpecificCause, getRootCausepublic ScriptStatementFailedException(java.lang.String stmt,
int stmtNumber,
EncodedResource encodedResource,
java.lang.Throwable cause)
ScriptStatementFailedException.stmt - the actual SQL statement that failedstmtNumber - the statement number in the SQL script (i.e.,
the nth statement present in the resource)encodedResource - the resource from which the SQL statement was readcause - the underlying cause of the failurepublic static java.lang.String buildErrorMessage(java.lang.String stmt,
int stmtNumber,
EncodedResource encodedResource)
stmt - the actual SQL statement that failedstmtNumber - the statement number in the SQL script (i.e.,
the nth statement present in the resource)encodedResource - the resource from which the SQL statement was read