Package groovy.text
Class TemplateExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
groovy.text.TemplateExecutionException
- All Implemented Interfaces:
- java.io.Serializable
public class TemplateExecutionException
extends java.lang.Exception
A custom exception class to flag template execution errors
- See Also:
- Serialized Form
- 
Constructor SummaryConstructors Constructor Description TemplateExecutionException(int lineNumber)TemplateExecutionException(int lineNumber, java.lang.String message)TemplateExecutionException(int lineNumber, java.lang.String message, java.lang.Throwable cause)TemplateExecutionException(int lineNumber, java.lang.Throwable cause)
- 
Method SummaryModifier and Type Method Description intgetLineNumber()Returns the line number in the template source where the error occurredMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
- 
Constructor Details- 
TemplateExecutionExceptionpublic TemplateExecutionException(int lineNumber)
- 
TemplateExecutionExceptionpublic TemplateExecutionException(int lineNumber, java.lang.String message)
- 
TemplateExecutionExceptionpublic TemplateExecutionException(int lineNumber, java.lang.String message, java.lang.Throwable cause)
- 
TemplateExecutionExceptionpublic TemplateExecutionException(int lineNumber, java.lang.Throwable cause)
 
- 
- 
Method Details- 
getLineNumberpublic 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.
 
 
-