Error struct for parse errors in Predicator expressions.
This error occurs when the input expression cannot be parsed due to syntax errors.
Fields
message- Human-readable error descriptionline- Line number where the error occurredcolumn- Column number where the error occurredposition-{line, column}, derived from the fields above so generic error-reporting code can read a position uniformly acrossParseError,EvaluationError,TypeMismatchError, andUndefinedVariableError
Examples
%Predicator.Errors.ParseError{
message: "Expected number, string, boolean, date, datetime, identifier, function call, list, or '(' but found '>' at line 1, column 10",
line: 1,
column: 10,
position: {1, 10}
}
Summary
Functions
Creates a parse error.
Types
@type t() :: %Predicator.Errors.ParseError{ column: pos_integer(), line: pos_integer(), message: binary(), position: Predicator.Types.position() }
Functions
@spec new(binary(), pos_integer(), pos_integer()) :: t()
Creates a parse error.