Package groovy.text
Class TemplateExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
groovy.text.TemplateExecutionException
- All Implemented Interfaces:
Serializable
A custom exception class to flag template execution errors
- See Also:
-
Constructor Summary
ConstructorDescriptionTemplateExecutionException
(int lineNumber) TemplateExecutionException
(int lineNumber, String message) TemplateExecutionException
(int lineNumber, String message, Throwable cause) TemplateExecutionException
(int lineNumber, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the line number in the template source where the error occurredMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TemplateExecutionException
public TemplateExecutionException(int lineNumber) -
TemplateExecutionException
-
TemplateExecutionException
-
TemplateExecutionException
-
-
Method Details
-
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.
-