Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more structure in parser exception #43

Open
thecere opened this issue Oct 1, 2016 · 0 comments
Open

more structure in parser exception #43

thecere opened this issue Oct 1, 2016 · 0 comments

Comments

@thecere
Copy link

thecere commented Oct 1, 2016

I'm currently parsing the exception messages to derive column/lineno values. This is obviously insane so I propose give the exceptions some structure by adding lineno, col and the rest as exception attributes.

Candidates are JsonPathLexerError and stuff like Exception('Parse error at %s:%s near token %s (%s)' % (t.lineno, t.col, t.value, t.type))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant