public static class Template.WrongEncodingException extends ParseException
Template
constructors that specify a non-null
encoding whoch doesn't match the
encoding specified in the #ftl
header of the template.Modifier and Type | Field and Description |
---|---|
String |
specifiedEncoding
Deprecated.
Use
getTemplateSpecifiedEncoding() instead. |
columnNumber, currentToken, endColumnNumber, endLineNumber, eol, expectedTokenSequences, lineNumber, specialConstructor, tokenImage
_INCLUDE, AND, AS, ASCII_DIGIT, ASSIGN, ATTEMPT, BLANK, BREAK, BUILT_IN, CALL, CASE, CLOSE_BRACKET, CLOSE_PAREN, CLOSE_TAG1, CLOSE_TAG2, CLOSING_CURLY_BRACKET, COLON, COMMA, COMMENT, COMPRESS, DECIMAL, DEFAUL, DEFAULT, DIRECTIVE_END, DIV_EQUALS, DIVIDE, DOLLAR_INTERPOLATION_OPENING, DOT, DOT_DOT, DOT_DOT_ASTERISK, DOT_DOT_LESS, DOUBLE_EQUALS, DOUBLE_STAR, ELLIPSIS, ELSE, ELSE_IF, EMPTY_DIRECTIVE_END, END_ASSIGN, END_ATTEMPT, END_COMPRESS, END_ESCAPE, END_FOREACH, END_FUNCTION, END_GLOBAL, END_IF, END_ITEMS, END_LIST, END_LOCAL, END_MACRO, END_NOESCAPE, END_RECOVER, END_SEP, END_SWITCH, END_TAG, END_TRANSFORM, EOF, EQUALS, ESCAPE, ESCAPED_CHAR, ESCAPED_GT, ESCAPED_GTE, ESCAPED_ID_CHAR, EXCLAM, EXISTS, EXPRESSION_COMMENT, FALLBACK, FALSE, FLUSH, FM_EXPRESSION, FOREACH, FTL_HEADER, FUNCTION, GLOBALASSIGN, HALT, HASH_INTERPOLATION_OPENING, ID, ID_START_CHAR, IF, IMPORT, IN, IN_PAREN, INTEGER, ITEMS, KEEP_GOING, LESS_THAN, LESS_THAN_EQUALS, LIST, LOCALASSIGN, LONE_LESS_THAN_OR_DASH, LTRIM, MACRO, MAYBE_END, MINUS, MINUS_EQUALS, MINUS_MINUS, MOD_EQUALS, NAMED_PARAMETER_EXPRESSION, NATURAL_GT, NATURAL_GTE, NESTED, NO_PARSE, NO_SPACE_EXPRESSION, NODIRECTIVE, NOESCAPE, NON_ESCAPED_ID_START_CHAR, NOPARSE, NOT_EQUALS, NOTRIM, OPEN_BRACKET, OPEN_MISPLACED_INTERPOLATION, OPEN_PAREN, OPENING_CURLY_BRACKET, OR, PERCENT, PLUS, PLUS_EQUALS, PLUS_PLUS, RAW_STRING, RECOVER, RECURSE, RETURN, RTRIM, SEMICOLON, SEP, SETTING, SIMPLE_NESTED, SIMPLE_RECURSE, SIMPLE_RETURN, START_TAG, STATIC_TEXT_FALSE_ALARM, STATIC_TEXT_NON_WS, STATIC_TEXT_WS, STOP, STRING_LITERAL, SWITCH, TERMINATING_EXCLAM, TERMINATING_WHITESPACE, TERSE_COMMENT, TERSE_COMMENT_END, TIMES, TIMES_EQUALS, TRANSFORM, TRIM, TRIVIAL_FTL_HEADER, TRUE, UNIFIED_CALL, UNIFIED_CALL_END, UNKNOWN_DIRECTIVE, USING, VISIT
Constructor and Description |
---|
WrongEncodingException(String templateSpecifiedEncoding)
Deprecated.
Use
#WrongEncodingException(String, String) . |
WrongEncodingException(String templateSpecifiedEncoding,
String constructorSpecifiedEncoding) |
Modifier and Type | Method and Description |
---|---|
String |
getConstructorSpecifiedEncoding() |
String |
getMessage()
Returns the error location plus the error description.
|
String |
getTemplateSpecifiedEncoding() |
add_escapes, getColumnNumber, getEditorMessage, getEndColumnNumber, getEndLineNumber, getLineNumber, getTemplateName, setTemplateName
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public String specifiedEncoding
getTemplateSpecifiedEncoding()
instead.public WrongEncodingException(String templateSpecifiedEncoding)
#WrongEncodingException(String, String)
.public String getMessage()
ParseException
getMessage
in class ParseException
ParseException.getDescription()
,
ParseException.getTemplateName()
,
ParseException.getLineNumber()
,
ParseException.getColumnNumber()
public String getTemplateSpecifiedEncoding()
public String getConstructorSpecifiedEncoding()
Copyright © 2016. All Rights Reserved.