spring-data-mongodb icon indicating copy to clipboard operation
spring-data-mongodb copied to clipboard

DATAMONGO-2511 Give context to mapping exceptions

Open pkubowicz opened this issue 5 years ago • 0 comments

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).

pkubowicz avatar Apr 28 '20 06:04 pkubowicz