- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.datanucleus.store.query.inmemory.VariableNotSetException
-
- All Implemented Interfaces:
Serializable
public class VariableNotSetException extends RuntimeException
Exception representing a variable not having its value currently set in the query.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected VariableExpression
varExpr
protected Object[]
variableValues
-
Constructor Summary
Constructors Constructor Description VariableNotSetException(VariableExpression varExpr)
Constructor when we don't know the possible values.VariableNotSetException(VariableExpression varExpr, Object[] values)
Constructor when we know the possible variable values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Field Detail
-
varExpr
protected VariableExpression varExpr
-
variableValues
protected Object[] variableValues
-
-
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, Object[] values)
Constructor when we know the possible variable values.- Parameters:
varExpr
- The variable expressionvalues
- The values
-
-
Method Detail
-
getVariableExpression
public VariableExpression getVariableExpression()
Accessor for the variable expression that is not set.- Returns:
- The variable expression
-
getValues
public Object[] getValues()
Accessor for the possible variable values (if known).- Returns:
- The values
-
-