Class ScriptRunnerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.tentackle.sql.BackendException
org.tentackle.sql.ScriptRunnerException
- All Implemented Interfaces:
Serializable
Runtime exception thrown when a
ScriptRunner encounters an error.- Author:
- harald
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionScriptRunnerException(String message, String sql, List<ScriptRunnerResult> results, Throwable cause) Creates a new ScriptRunnerException.protectedScriptRunnerException(String message, Throwable cause) Constructor used by TRIP deserialization.
TRIP sets the SQL code and the results afterward. -
Method Summary
Modifier and TypeMethodDescriptionGets the results collected so far.getSql()Gets the SQL code that failed.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ScriptRunnerException
public ScriptRunnerException(String message, String sql, List<ScriptRunnerResult> results, Throwable cause) Creates a new ScriptRunnerException.- Parameters:
message- the detail messagesql- the SQL code that failedresults- the successful results collected so farcause- the cause
-
ScriptRunnerException
-
-
Method Details
-
getSql
-
getResults
Gets the results collected so far.- Returns:
- the results, null if unknown
-