org.stringtemplate.v4.misc
Enum ErrorType
java.lang.Object
java.lang.Enum<ErrorType>
org.stringtemplate.v4.misc.ErrorType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ErrorType>
public enum ErrorType
- extends java.lang.Enum<ErrorType>
All the errors that can happen and how to generate a message
|
Field Summary |
java.lang.String |
message
|
|
Method Summary |
static ErrorType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
NO_SUCH_TEMPLATE
public static final ErrorType NO_SUCH_TEMPLATE
NO_IMPORTED_TEMPLATE
public static final ErrorType NO_IMPORTED_TEMPLATE
NO_SUCH_ATTRIBUTE
public static final ErrorType NO_SUCH_ATTRIBUTE
REF_TO_IMPLICIT_ATTRIBUTE_OUT_OF_SCOPE
public static final ErrorType REF_TO_IMPLICIT_ATTRIBUTE_OUT_OF_SCOPE
MISSING_FORMAL_ARGUMENTS
public static final ErrorType MISSING_FORMAL_ARGUMENTS
NO_SUCH_PROPERTY
public static final ErrorType NO_SUCH_PROPERTY
MAP_ARGUMENT_COUNT_MISMATCH
public static final ErrorType MAP_ARGUMENT_COUNT_MISMATCH
ARGUMENT_COUNT_MISMATCH
public static final ErrorType ARGUMENT_COUNT_MISMATCH
EXPECTING_STRING
public static final ErrorType EXPECTING_STRING
WRITER_CTOR_ISSUE
public static final ErrorType WRITER_CTOR_ISSUE
CANT_IMPORT
public static final ErrorType CANT_IMPORT
SYNTAX_ERROR
public static final ErrorType SYNTAX_ERROR
TEMPLATE_REDEFINITION
public static final ErrorType TEMPLATE_REDEFINITION
EMBEDDED_REGION_REDEFINITION
public static final ErrorType EMBEDDED_REGION_REDEFINITION
REGION_REDEFINITION
public static final ErrorType REGION_REDEFINITION
MAP_REDEFINITION
public static final ErrorType MAP_REDEFINITION
ALIAS_TARGET_UNDEFINED
public static final ErrorType ALIAS_TARGET_UNDEFINED
TEMPLATE_REDEFINITION_AS_MAP
public static final ErrorType TEMPLATE_REDEFINITION_AS_MAP
LEXER_ERROR
public static final ErrorType LEXER_ERROR
NO_DEFAULT_VALUE
public static final ErrorType NO_DEFAULT_VALUE
NO_SUCH_FUNCTION
public static final ErrorType NO_SUCH_FUNCTION
NO_SUCH_REGION
public static final ErrorType NO_SUCH_REGION
NO_SUCH_OPTION
public static final ErrorType NO_SUCH_OPTION
INVALID_TEMPLATE_NAME
public static final ErrorType INVALID_TEMPLATE_NAME
ANON_ARGUMENT_MISMATCH
public static final ErrorType ANON_ARGUMENT_MISMATCH
REQUIRED_PARAMETER_AFTER_OPTIONAL
public static final ErrorType REQUIRED_PARAMETER_AFTER_OPTIONAL
INTERNAL_ERROR
public static final ErrorType INTERNAL_ERROR
WRITE_IO_ERROR
public static final ErrorType WRITE_IO_ERROR
CANT_LOAD_GROUP_FILE
public static final ErrorType CANT_LOAD_GROUP_FILE
message
public java.lang.String message
values
public static ErrorType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ErrorType c : ErrorType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ErrorType valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
Copyright © 2011. All Rights Reserved.