java.lang.Object
technology.sola.script.error.ErrorContainer
ErrorContainer contains a list of
ScriptError
s found for a particular script. It provides several convenience
methods for interacting with errors.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addError
(ScriptError error) Adds an error to the collection.void
addErrors
(Collection<ScriptError> errors) Adds a collection of errors to the collection.boolean
hasError()
boolean
void
Prints all errors toSystem.err
.
-
Constructor Details
-
ErrorContainer
public ErrorContainer()
-
-
Method Details
-
addError
Adds an error to the collection.- Parameters:
error
- theScriptError
to add
-
addErrors
Adds a collection of errors to the collection.- Parameters:
errors
- the collection ofScriptError
s 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
.
-