Error struct for undefined variable errors in Predicator evaluation.
This error occurs when trying to access a variable that doesn't exist in the evaluation context.
Fields
message- Human-readable error descriptionvariable- The name of the undefined variableposition-{line, column}of the source token that produced the failing instruction, when a position table was available (optional)
Examples
%Predicator.Errors.UndefinedVariableError{
message: "Undefined variable: score",
variable: "score"
}
%Predicator.Errors.UndefinedVariableError{
message: "Undefined variable: user.profile.settings",
variable: "user.profile.settings"
}
Summary
Functions
Creates an undefined variable error.
Types
@type t() :: %Predicator.Errors.UndefinedVariableError{ message: binary(), position: Predicator.Types.position() | nil, variable: binary() }