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

[2.7] Add back-references to JsonParser / JsonGenerator for low-level parsing issues #198

Closed
cowtowncoder opened this issue Jun 11, 2015 · 1 comment
Milestone

Comments

@cowtowncoder
Copy link
Member

When JSON encoding/decoding fails, it would make sense to have access to the underlying parser/generator, from catch block. Although instance may not be in mint condition (depending on how error handling within Jackson works), it might still give useful low-level information on actual failure, above and beyond what location information Exception itself contains.
For example: JsonParser.getCurrentName() may be available, as we all JsonParser.getParsingContext().

@cowtowncoder cowtowncoder changed the title Add back-references to JsonParser / JsonGenerator for low-level parsing issues [2.7] Add back-references to JsonParser / JsonGenerator for low-level parsing issues Jul 17, 2015
cowtowncoder added a commit that referenced this issue Aug 18, 2015
…ception`), `JsonGenerator` (from `JsonGenerationException`)
@cowtowncoder cowtowncoder added this to the 2.7.0 milestone Aug 18, 2015
@cowtowncoder
Copy link
Member Author

Implemented for 2.7.0.

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