Class JexlException.Variable

All Implemented Interfaces:
Serializable
Enclosing class:
JexlException

public static class JexlException.Variable extends JexlException
Thrown when a variable is unknown.
Since:
3.0
See Also:
  • Constructor Details

    • Variable

      public Variable(org.apache.commons.jexl3.parser.JexlNode node, String var, boolean undef)
      Creates a new Variable exception instance.
      Parameters:
      node - the offending ASTnode
      var - the unknown variable
      undef - whether the variable is undefined or evaluated as null
    • Variable

      public Variable(org.apache.commons.jexl3.parser.JexlNode node, String var, JexlException.VariableIssue vi)
      Creates a new Variable exception instance.
      Parameters:
      node - the offending ASTnode
      var - the unknown variable
      vi - the variable issue
  • Method Details

    • detailedMessage

      protected String detailedMessage()
      Description copied from class: JexlException
      Accesses detailed message.
      Overrides:
      detailedMessage in class JexlException
      Returns:
      the message
    • getVariable

      public String getVariable()
      Gets the variable name
      Returns:
      the variable name
    • isUndefined

      public boolean isUndefined()
      Tests whether the variable causing an error is undefined or evaluated as null.
      Returns:
      true if undefined, false otherwise