Class ParseError

All Implemented Interfaces:
Serializable

public class ParseError extends RuntimeException
Exception thrown when parsing CEL expressions fails.

This unchecked exception is raised by the parser and lexer when they encounter invalid syntax or characters. The error message includes the source location, and the line() and column() accessors expose the exact 1-based line and column where the problem was detected.

See Also:
  • Constructor Details

    • ParseError

      public ParseError(String message, int line, int column)
      Constructs a new parse error with the specified detail message and source location.
      Parameters:
      message - a human-readable description of the parsing issue
      line - the 1-based line number at which the error occurred
      column - the 1-based column number at which the error occurred
  • Method Details

    • line

      public int line()
      Returns the 1-based line number where the error occurred.
      Returns:
      the line number
    • column

      public int column()
      Returns the 1-based column number where the error occurred.
      Returns:
      the column number