Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.jexl3
Class JexlException.Variable

    java.lang.Object
      java.lang.Throwable
          java.lang.Exception
              java.lang.RuntimeException
                  org.apache.commons.jexl3.JexlException
                      org.apache.commons.jexl3.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:
  Serialized Form

Nested Class Summary

Nested classes/interfaces inherited from class org.apache.commons.jexl3.JexlException
`JexlException.Ambiguous, JexlException.Annotation, JexlException.Assignment, JexlException.Break, JexlException.Cancel, JexlException.Continue, JexlException.Method, JexlException.Operator, JexlException.Parsing, JexlException.Property, JexlException.Return, JexlException.Tokenization, JexlException.Variable`

Constructor Summary
`JexlException.Variable(JexlNode node, String var, boolean undef)` Creates a new Variable exception instance.

Method Summary
`protected String` | `detailedMessage()` Accesses detailed message.
`String` | `getVariable()`
`boolean` | `isUndefined()` Whether the variable causing an error is undefined or evaluated as null.

Methods inherited from class org.apache.commons.jexl3.JexlException
`annotationError, clean, getInfo, getInfo, getMessage, methodError, operatorError, parserError, propertyError, variableError`

Methods inherited from class java.lang.Throwable
`fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### JexlException.Variable

    public JexlException.Variable(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

Method Detail

### isUndefined

    public boolean isUndefined()

  Whether the variable causing an error is undefined or evaluated as null.

  Returns:
    true if undefined, false otherwise

### getVariable

    public String getVariable()

  Returns:
    the variable name

### detailedMessage

    protected String detailedMessage()

  Description copied from class: `JexlException`
  Accesses detailed message.

  Overrides:
    `detailedMessage` in class `JexlException`
  Returns:
    the message

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.