Enum ErrorType

java.lang.Object
java.lang.Enum<ErrorType>
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 Details

    • 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
    • NO_SUCH_ATTRIBUTE_PASS_THROUGH

      public static final ErrorType NO_SUCH_ATTRIBUTE_PASS_THROUGH
    • 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
    • PARAMETER_REDEFINITION

      public static final ErrorType PARAMETER_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
    • UNSUPPORTED_DELIMITER

      public static final ErrorType UNSUPPORTED_DELIMITER
    • 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 Details

    • message

      public String message
  • Constructor Details

    • ErrorType

      private ErrorType(String m)
  • Method Details

    • values

      public static ErrorType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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