Class VariableNotSetException

  • All Implemented Interfaces:
    java.io.Serializable

    public class VariableNotSetException
    extends java.lang.RuntimeException
    Exception representing a variable not having its value currently set in the query.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object[] getValues()
      Accessor for the possible variable values (if known).
      VariableExpression getVariableExpression()
      Accessor for the variable expression that is not set.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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

      • VariableNotSetException

        public VariableNotSetException​(VariableExpression varExpr)
        Constructor when we don't know the possible values.
        Parameters:
        varExpr - The variable expression
      • VariableNotSetException

        public VariableNotSetException​(VariableExpression varExpr,
                                       java.lang.Object[] values)
        Constructor when we know the possible variable values.
        Parameters:
        varExpr - The variable expression
        values - The values
    • Method Detail

      • getVariableExpression

        public VariableExpression getVariableExpression()
        Accessor for the variable expression that is not set.
        Returns:
        The variable expression
      • getValues

        public java.lang.Object[] getValues()
        Accessor for the possible variable values (if known).
        Returns:
        The values