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

Add mapping exception with JSON path and location #234

Merged
merged 1 commit into from
Apr 1, 2022

Conversation

swallez
Copy link
Member

@swallez swallez commented Apr 1, 2022

Adds a new JsonpMappingException that is thrown by the JSON mapping framework instead of a raw JsonParsingException. It provides detailed information on the context where the error happened: object class, JSON path and location in the input.

Example error message: Error deserializing co.elastic.clients.elasticsearch.core.search.Hit: java.lang.NumberFormatException: For input string: "abc" (JSON path: hits.hits[1]._score) (line no=1, column no=491, offset=490)

@swallez swallez merged commit f32aab9 into main Apr 1, 2022
@swallez swallez deleted the mapping-exception-path branch April 1, 2022 13:16
swallez added a commit that referenced this pull request Apr 1, 2022
Co-authored-by: Sylvain Wallez <sylvain@elastic.co>
swallez added a commit that referenced this pull request Apr 1, 2022
Co-authored-by: Sylvain Wallez <sylvain@elastic.co>
swallez added a commit that referenced this pull request Apr 1, 2022
Co-authored-by: Sylvain Wallez <sylvain@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant