public class ScriptStatementFailedException extends ScriptException
ScriptUtils if a statement in an CQL script failed when executing it against the target database.| Constructor and Description |
|---|
ScriptStatementFailedException(String stmt,
int stmtNumber,
EncodedResource encodedResource,
Throwable cause)
Construct a new
ScriptStatementFailedException. |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildErrorMessage(String stmt,
int stmtNumber,
EncodedResource encodedResource)
Build an error message for an CQL script execution failure, based on the supplied arguments.
|
contains, getMessage, getMostSpecificCause, getRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ScriptStatementFailedException(String stmt, int stmtNumber, EncodedResource encodedResource, Throwable cause)
ScriptStatementFailedException.stmt - the actual CQL statement that failed.stmtNumber - the statement number in the CQL script (i.e., the nth statement present in the
resource).encodedResource - the resource from which the CQL statement was read.cause - the root cause.public static String buildErrorMessage(String stmt, int stmtNumber, EncodedResource encodedResource)
stmt - the actual CQL statement that failed.stmtNumber - the statement number in the CQL script (i.e., the nth statement present in the
resource).encodedResource - the resource from which the CQL statement was readCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.