public static class GoloCompilationException.Builder extends Object
| Constructor and Description |
|---|
Builder(String goloSourceFilename)
Makes a builder to report problems in a source file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doThrow()
Stops adding problems and throws the exception,
|
List<GoloCompilationException.Problem> |
getProblems() |
GoloCompilationException.Builder |
report(GoloCompilationException.Problem.Type type,
GoloASTNode source,
String description)
Report a problem to the exception being built.
|
GoloCompilationException.Builder |
report(ParseException pe,
GoloASTNode source)
Report a parsing error problem to the exception being built.
|
public Builder(String goloSourceFilename)
goloSourceFilename - the source file name.public GoloCompilationException.Builder report(GoloCompilationException.Problem.Type type, GoloASTNode source, String description)
type - the problem type.source - the problem source.description - the problem description.public GoloCompilationException.Builder report(ParseException pe, GoloASTNode source)
pe - the caught ParseException.source - the node of the ParseException.public void doThrow()
throws GoloCompilationException
GoloCompilationException - everytime.public List<GoloCompilationException.Problem> getProblems()
Copyright © 2014 Institut National des Sciences Appliquées de Lyon (INSA-Lyon). All Rights Reserved.