Package nz.org.riskscape.engine.rl
Enum Class ExpressionRealizer.ProblemCodes
java.lang.Object
java.lang.Enum<ExpressionRealizer.ProblemCodes>
nz.org.riskscape.engine.rl.ExpressionRealizer.ProblemCodes
- All Implemented Interfaces:
Serializable
,Comparable<ExpressionRealizer.ProblemCodes>
,Constable
,ProblemCode
- Enclosing interface:
- ExpressionRealizer
public static enum ExpressionRealizer.ProblemCodes
extends Enum<ExpressionRealizer.ProblemCodes>
implements ProblemCode
Standard set of problem codes for describing problems during expression realization
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionKeyword supplied for an argument that doesn't exist with this keywordHappens when an argument is supplied multiple times, i.e.Non-keyword arg supplied after keyword args, e.g.Positional/Keyword arguments are missing, e.g. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ExpressionRealizer.ProblemCodes[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface nz.org.riskscape.problem.ProblemCode
name, toKey
-
Enum Constant Details
-
KEYWORD_DOES_NOT_EXIST
Keyword supplied for an argument that doesn't exist with this keyword
-
KEYWORD_REQUIRED
Non-keyword arg supplied after keyword args, e.g. (foo, bar=1, 'baz')
-
KEYWORD_OUT_OF_ORDER
Happens when an argument is supplied multiple times, i.e. positionally and with a keyword
-
MISSING_KEYWORD_ARGUMENTS
Positional/Keyword arguments are missing, e.g. argument #3 was specified with a keyword but args 1 and 2 were omitted
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-