java.lang.Object
technology.sola.script.error.ErrorContainer
ErrorContainer contains a list of
ScriptErrors found for a particular script. It provides several convenience
methods for interacting with errors.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddError(ScriptError error) Adds an error to the collection.voidaddErrors(Collection<ScriptError> errors) Adds a collection of errors to the collection.booleanhasError()booleanvoidPrints all errors toSystem.err.
-
Constructor Details
-
ErrorContainer
public ErrorContainer()
-
-
Method Details
-
addError
Adds an error to the collection.- Parameters:
error- theScriptErrorto add
-
addErrors
Adds a collection of errors to the collection.- Parameters:
errors- the collection ofScriptErrors to add
-
hasError
public boolean hasError()- Returns:
- true if there is at least one error
-
hasRuntimeError
public boolean hasRuntimeError()- Returns:
- true if there is at least one error with type
ScriptErrorStage.RUNTIME
-
printErrors
public void printErrors()Prints all errors toSystem.err.
-