public class TemplateParseException
extends RuntimeException
A custom exception class to flag template parsing errors
| Constructor and description |
|---|
TemplateParseException(int lineNumber, int column)Creates an exception for a parse failure at the supplied template position. |
TemplateParseException(String message, int lineNumber, int column)Creates an exception for a parse failure at the supplied template position. |
TemplateParseException(String message, Throwable cause, int lineNumber, int column)Creates an exception for a parse failure at the supplied template position. |
TemplateParseException(Throwable t, int lineNumber, int column)Creates an exception for a parse failure at the supplied template position. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public int |
getColumn()Returns the column where parsing failed. |
|
public int |
getLineNumber()Returns the line where parsing failed. |
| Methods inherited from class | Name |
|---|---|
class RuntimeException |
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 a parse failure at the supplied template position.
lineNumber - one-based line number in the template sourcecolumn - one-based column number in the template sourceCreates an exception for a parse failure at the supplied template position.
message - a description of the parse failurelineNumber - one-based line number in the template sourcecolumn - one-based column number in the template sourceCreates an exception for a parse failure at the supplied template position.
message - a description of the parse failurecause - the underlying parse failurelineNumber - one-based line number in the template sourcecolumn - one-based column number in the template sourceCreates an exception for a parse failure at the supplied template position.
t - the underlying parse failurelineNumber - one-based line number in the template sourcecolumn - one-based column number in the template sourceCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.