Top Description Fields Constructors Methods
groovy.text

public Class TemplateExecutionException

extends Exception
Class Inheritance

A custom exception class to flag template execution errors

Field Summary

Modifier and TypeField and Description
private int
private static final long

Constructor Summary

AccessConstructor and Description
public
public
TemplateExecutionException(int lineNumber, String message)

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

public
TemplateExecutionException(int lineNumber, Throwable cause)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the one-based line number of the template parsing error.
getLineNumber
()

Returns the line number in the template source where the error occurred

Field Detail

lineNumberback to summary
private int lineNumber
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

TemplateExecutionExceptionback to summary
public TemplateExecutionException(int lineNumber)
TemplateExecutionExceptionback to summary
public TemplateExecutionException(int lineNumber, String message)
TemplateExecutionExceptionback to summary
public TemplateExecutionException(int lineNumber, String message, Throwable cause)
TemplateExecutionExceptionback to summary
public TemplateExecutionException(int lineNumber, Throwable cause)

Method Detail

getLineNumberback to summary
public int getLineNumber()

Returns the line number in the template source where the error occurred

Returns:int

the one-based line number of the template parsing error.