Skip to content

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