ScriptStatementFailedException
instead.@Deprecated 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(String statement,
int statementNumber,
EncodedResource encodedResource,
Throwable cause)
Deprecated.
Creates a new
ScriptStatementFailedException . |
Modifier and Type | Method and Description |
---|---|
static String |
buildErrorMessage(String statement,
int statementNumber,
EncodedResource encodedResource)
Deprecated.
Build an error message for an SQL script execution failure, based on the supplied arguments.
|
contains, getMessage, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ScriptStatementFailedException(String statement, int statementNumber, EncodedResource encodedResource, Throwable cause)
ScriptStatementFailedException
.statement
- the actual SQL statement that failed.statementNumber
- the statement number in the SQL script (i.e., the n'th statement present in the resource).encodedResource
- the resource from which the SQL statement was read.cause
- the underlying cause of the failure.public static String buildErrorMessage(String statement, int statementNumber, EncodedResource encodedResource)
statement
- the actual SQL statement that failed.statementNumber
- the statement number in the SQL script (i.e., the n'th statement present in the resource).encodedResource
- the resource from which the SQL statement was read.Copyright © 2018–2022 Pivotal Software, Inc.. All rights reserved.