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

    Modifier and Type
    Method
    Description
    boolean
    Returns whether this exception is fatal.
    void
    setFatal(boolean fatal)
    Sets whether this exception is fatal.
  • Method Details

    • isFatal

      boolean isFatal()
      Returns whether this exception is fatal. A fatal exception typically causes compilation to stop.
      Returns:
      true if this exception is fatal; false otherwise
    • setFatal

      void setFatal(boolean fatal)
      Sets whether this exception is fatal. A fatal exception typically causes compilation to stop.
      Parameters:
      fatal - true to mark this exception as fatal; false otherwise