org.stringtemplate.v4.misc
Enum ErrorType

java.lang.Object
  extended by java.lang.Enum<ErrorType>
      extended by org.stringtemplate.v4.misc.ErrorType
All Implemented Interfaces:
Serializable, Comparable<ErrorType>

public enum ErrorType
extends Enum<ErrorType>

All the errors that can happen and how to generate a message


Enum Constant Summary
ALIAS_TARGET_UNDEFINED
           
ANON_ARGUMENT_MISMATCH
           
ARGUMENT_COUNT_MISMATCH
           
CANT_IMPORT
           
CANT_LOAD_GROUP_FILE
           
EMBEDDED_REGION_REDEFINITION
           
EXPECTING_STRING
           
INTERNAL_ERROR
           
INVALID_TEMPLATE_NAME
           
LEXER_ERROR
           
MAP_ARGUMENT_COUNT_MISMATCH
           
MAP_REDEFINITION
           
MISSING_FORMAL_ARGUMENTS
           
NO_DEFAULT_VALUE
           
NO_IMPORTED_TEMPLATE
           
NO_SUCH_ATTRIBUTE
           
NO_SUCH_FUNCTION
           
NO_SUCH_OPTION
           
NO_SUCH_PROPERTY
           
NO_SUCH_REGION
           
NO_SUCH_TEMPLATE
           
REF_TO_IMPLICIT_ATTRIBUTE_OUT_OF_SCOPE
           
REGION_REDEFINITION
           
REQUIRED_PARAMETER_AFTER_OPTIONAL
           
SYNTAX_ERROR
           
TEMPLATE_REDEFINITION
           
TEMPLATE_REDEFINITION_AS_MAP
           
WRITE_IO_ERROR
           
WRITER_CTOR_ISSUE
           
 
Field Summary
 String message
           
 
Method Summary
static ErrorType valueOf(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
 

Enum Constant Detail

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
Field Detail

message

public String message
Method Detail

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(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2011. All Rights Reserved.