Package groovy.text

Class TemplateExecutionException

  • All Implemented Interfaces:
    Serializable

    public class TemplateExecutionException
    extends Exception
    A custom exception class to flag template execution errors
    See Also:
    Serialized Form
    • Constructor Detail

      • TemplateExecutionException

        public TemplateExecutionException​(int lineNumber)
      • TemplateExecutionException

        public TemplateExecutionException​(int lineNumber,
                                          String message)
      • TemplateExecutionException

        public TemplateExecutionException​(int lineNumber,
                                          String message,
                                          Throwable cause)
      • TemplateExecutionException

        public TemplateExecutionException​(int lineNumber,
                                          Throwable cause)
    • Method Detail

      • getLineNumber

        public int getLineNumber()
        Returns the line number in the template source where the error occurred
        Returns:
        the one-based line number of the template parsing error.