public class TemplateExecutionException
extends Exception
A custom exception class to flag template execution errors
| Constructor and description |
|---|
TemplateExecutionException(int lineNumber)Creates an exception for an execution failure at the supplied template line. |
TemplateExecutionException(int lineNumber, String message)Creates an exception for an execution failure at the supplied template line. |
TemplateExecutionException(int lineNumber, String message, Throwable cause)Creates an exception for an execution failure at the supplied template line. |
TemplateExecutionException(int lineNumber, Throwable cause)Creates an exception for an execution failure at the supplied template line. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public int |
getLineNumber()Returns the line number in the template source where the error occurred |
| Methods inherited from class | Name |
|---|---|
class Exception |
addSuppressed, equals, fillInStackTrace, getCause, getClass, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, hashCode, initCause, notify, notifyAll, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString, wait, wait, wait |
Creates an exception for an execution failure at the supplied template line.
lineNumber - one-based line number in the template sourceCreates an exception for an execution failure at the supplied template line.
lineNumber - one-based line number in the template sourcemessage - a description of the execution failureCreates an exception for an execution failure at the supplied template line.
lineNumber - one-based line number in the template sourcemessage - a description of the execution failurecause - the underlying execution failureCreates an exception for an execution failure at the supplied template line.
lineNumber - one-based line number in the template sourcecause - the underlying execution failureCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.