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

  • Enum Constant Details

    • KEYWORD_DOES_NOT_EXIST

      public static final ExpressionRealizer.ProblemCodes KEYWORD_DOES_NOT_EXIST

      Keyword supplied for an argument that doesn't exist with this keyword

    • KEYWORD_REQUIRED

      public static final ExpressionRealizer.ProblemCodes KEYWORD_REQUIRED

      Non-keyword arg supplied after keyword args, e.g. (foo, bar=1, 'baz')

    • KEYWORD_OUT_OF_ORDER

      public static final ExpressionRealizer.ProblemCodes KEYWORD_OUT_OF_ORDER

      Happens when an argument is supplied multiple times, i.e. positionally and with a keyword

    • MISSING_KEYWORD_ARGUMENTS

      public static final ExpressionRealizer.ProblemCodes 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

      public static ExpressionRealizer.ProblemCodes[] 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

      public static ExpressionRealizer.ProblemCodes valueOf(String name)
      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 name
      NullPointerException - if the argument is null