Predicator.Errors.ParseError (predicator v2.2.0)

View Source

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 description
  • line - Line number where the error occurred
  • column - Column number where the error occurred

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
}

Summary

Functions

Creates a parse error.

Types

t()

@type t() :: %Predicator.Errors.ParseError{
  column: pos_integer(),
  line: pos_integer(),
  message: binary()
}

Functions

new(message, line, column)

@spec new(binary(), pos_integer(), pos_integer()) :: t()

Creates a parse error.