Home
last modified time | relevance | path

Searched hist:"5 a779085823f749402d6c84e40e4601cb251d52a" (Results 1 – 1 of 1) sorted by relevance

/plugin/ebnf/
H A Debnf.php5a779085823f749402d6c84e40e4601cb251d52a Wed Dec 18 17:44:28 UTC 2024 Damien Regad <dregad@mantisbt.org> Improve error handling

When given invalid syntax, it can be difficult to find out where the
problem is given only the position without the context of the input
string.

We define a new, specific EbnfException class storing the position of
the parsing error and throw that instead of a regular Exception.

This allows the exception handler to provide some context for the error
as a short substring of the input text.