[Java] Class TemplateExecutionException
- groovy.text.TemplateExecutionException
A custom exception class to flag template execution errors
Constructor Summary
Constructor and description |
---|
TemplateExecutionException
(int lineNumber) |
TemplateExecutionException
(int lineNumber, String message) |
TemplateExecutionException
(int lineNumber, String message, Throwable cause) |
TemplateExecutionException
(int lineNumber, Throwable cause) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
int |
getLineNumber() Returns the line number in the template source where the error occurred |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Exception | printStackTrace, printStackTrace, printStackTrace, fillInStackTrace, getCause, initCause, toString, addSuppressed, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, setStackTrace, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
class Throwable | printStackTrace, printStackTrace, printStackTrace, fillInStackTrace, getCause, initCause, toString, addSuppressed, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, setStackTrace, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
Constructor Detail
public TemplateExecutionException(int lineNumber)
public TemplateExecutionException(int lineNumber, String message)
public TemplateExecutionException(int lineNumber, String message, Throwable cause)
public TemplateExecutionException(int lineNumber, Throwable cause)
Method Detail
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.
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/groovy/text/TemplateExecutionException.html