Package org.codehaus.groovy
Interface GroovyExceptionInterface
- All Known Implementing Classes:
ConfigurationException,GroovyException,IncorrectTypeHintException,InvalidOptionException,ParserException,ReadException,SyntaxException,TokenException,TokenMismatchException
public interface GroovyExceptionInterface
An interface for use by all Groovy compiler exceptions.
Provides control over exception fatality, indicating whether an exception should halt compilation.
-
Method Summary
-
Method Details
-
isFatal
boolean isFatal()Returns whether this exception is fatal. A fatal exception typically causes compilation to stop.- Returns:
trueif this exception is fatal;falseotherwise
-
setFatal
void setFatal(boolean fatal) Sets whether this exception is fatal. A fatal exception typically causes compilation to stop.- Parameters:
fatal-trueto mark this exception as fatal;falseotherwise
-