erikrose / parsimonious

The fastest pure-Python PEG parser I can muster
MIT License
1.79k stars 126 forks source link

Implement a base ParsimoniousError exception class #221

Closed kkirsche closed 1 year ago

kkirsche commented 1 year ago

This commit adds a ParsimoniousError class. This replaces the use of Exception as a parent class. This is introduced to simplify code by callers who may want to be able to catch all Parsimonious errors using a single except block but not unrelated exceptions.