Package com.hubspot.jinjava.interpret
Enum TemplateError.ErrorReason
- java.lang.Object
-
- java.lang.Enum<TemplateError.ErrorReason>
-
- com.hubspot.jinjava.interpret.TemplateError.ErrorReason
-
- All Implemented Interfaces:
Serializable
,Comparable<TemplateError.ErrorReason>
- Enclosing class:
- TemplateError
public static enum TemplateError.ErrorReason extends Enum<TemplateError.ErrorReason>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_URL
COLLECTION_TOO_BIG
DISABLED
EXCEPTION
INVALID_ARGUMENT
INVALID_INPUT
MISSING
OTHER
OUTPUT_TOO_BIG
OVER_LIMIT
SYNTAX_ERROR
UNKNOWN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TemplateError.ErrorReason
valueOf(String name)
Returns the enum constant of this type with the specified name.static TemplateError.ErrorReason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SYNTAX_ERROR
public static final TemplateError.ErrorReason SYNTAX_ERROR
-
UNKNOWN
public static final TemplateError.ErrorReason UNKNOWN
-
BAD_URL
public static final TemplateError.ErrorReason BAD_URL
-
EXCEPTION
public static final TemplateError.ErrorReason EXCEPTION
-
MISSING
public static final TemplateError.ErrorReason MISSING
-
DISABLED
public static final TemplateError.ErrorReason DISABLED
-
INVALID_ARGUMENT
public static final TemplateError.ErrorReason INVALID_ARGUMENT
-
INVALID_INPUT
public static final TemplateError.ErrorReason INVALID_INPUT
-
OUTPUT_TOO_BIG
public static final TemplateError.ErrorReason OUTPUT_TOO_BIG
-
OVER_LIMIT
public static final TemplateError.ErrorReason OVER_LIMIT
-
COLLECTION_TOO_BIG
public static final TemplateError.ErrorReason COLLECTION_TOO_BIG
-
OTHER
public static final TemplateError.ErrorReason OTHER
-
-
Method Detail
-
values
public static TemplateError.ErrorReason[] 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 (TemplateError.ErrorReason c : TemplateError.ErrorReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TemplateError.ErrorReason 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 nameNullPointerException
- if the argument is null
-
-