Package org.spockframework.compiler
Class ErrorReporter
- java.lang.Object
-
- org.spockframework.compiler.ErrorReporter
-
public class ErrorReporter extends java.lang.ObjectReporting facility for problems found during compilation. In general, error(ASTNode) is the preferred method to use. error(InvalidSpecCompileException) should only be used if compilation cannot continue in the same method where the error was found (because some steps need to be skipped). In that case, a InvalidSpecCompileException should be thrown at the point where the error is detected, and an outer method should catch the exception and pass it on to ErrorReporter.- Author:
- Peter Niederwieser
-
-
Constructor Summary
Constructors Constructor Description ErrorReporter(org.codehaus.groovy.control.SourceUnit sourceUnit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(int line, int column, java.lang.String msg, java.lang.Object... args)voiderror(java.lang.String msg, java.lang.Object... args)voiderror(java.lang.String msg, java.lang.Throwable cause, java.lang.Object... args)voiderror(org.codehaus.groovy.ast.ASTNode node, java.lang.String msg, java.lang.Object... args)voiderror(InvalidSpecCompileException e)
-
-
-
Method Detail
-
error
public void error(java.lang.String msg, java.lang.Object... args)
-
error
public void error(java.lang.String msg, java.lang.Throwable cause, java.lang.Object... args)
-
error
public void error(org.codehaus.groovy.ast.ASTNode node, java.lang.String msg, java.lang.Object... args)
-
error
public void error(int line, int column, java.lang.String msg, java.lang.Object... args)
-
error
public void error(InvalidSpecCompileException e)
-
-