spring-data-mongodb
spring-data-mongodb copied to clipboard
DATAMONGO-2511 Give context to mapping exceptions
When invoking findAll() exception details contained no information which document was malformed and other details (for example which field was wrong) were usually useless for identifying the document.
Now the mapping exception will include the document.
Fixes DATAMONGO-2511
- [x] You have read the Spring Data contribution guidelines.
- [x] There is a ticket in the bug tracker for the project in our JIRA.
- [x] You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
- [x] You submit test cases (unit or integration tests) that back your changes.
- [x] You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).