Package com.libdbm.cel.parser
Class ParseError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.libdbm.cel.parser.ParseError
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionParseError(String message, int line, int column) Constructs a new parse error with the specified detail message and source location. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ParseError
Constructs a new parse error with the specified detail message and source location.- Parameters:
message- a human-readable description of the parsing issueline- the 1-based line number at which the error occurredcolumn- 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
-