ScriptUtils if a statement in an SQL script failed when
executing it against the target database.
| Access | Constructor and Description |
|---|---|
| public | ScriptStatementFailedException(String
the actual SQL statement that failed stmt, int the statement number in the SQL script (i.e.,
the nth statement present in the resource) stmtNumber, EncodedResource the resource from which the SQL statement was read encodedResource, Throwable the underlying cause of the failure cause)Construct a new |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: an error message suitable for an exception's detail message or loggingthe actual SQL statement that failed stmt, int the statement number in the SQL script (i.e.,
the nth statement present in the resource) stmtNumber, EncodedResource the resource from which the SQL statement was read encodedResource)Build an error message for an SQL script execution failure, based on the supplied arguments. |
| ScriptStatementFailedException | back to summary |
|---|---|
| public ScriptStatementFailedException(String stmt, int stmtNumber, EncodedResource encodedResource, Throwable cause) Construct a new
| |
| buildErrorMessage | back to summary |
|---|---|
| public static String buildErrorMessage(String stmt, int stmtNumber, EncodedResource encodedResource) Build an error message for an SQL script execution failure, based on the supplied arguments.
| |