spring-projects / spring-projects/spring-data-mongodb
Provide more user friendly error messages based on MongoDB error codes and context of use. [DATAMONGO-1876]
@christophstrobl is already working on this.
Since Dec 30, 2020.
- Dominant language
- Java
- Stars
- 1.7k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
Christoph Strobl opened DATAMONGO-1876 and commented
Error codes and messages provided by MongoDB server do not alway provide enough information for uses to be able to solve problems themselfes. Eg. featureCompatibility errors can cause confusion.
Investigate if we can provide more detailed errors based on the MongoDB error codes and the context of use of a feature
Reference URL: https://github.com/mongodb/mongo/blob/master/src/mongo/base/error_codes.err
Issue Links:
-
DATAMONGO-1875 UncategorizedMongoDbException: $jsonSchema is not allowed in this context
-
DATAMONGO-2212 No error logged or thrown using change stream and incompatible featureCompatibilityVersion
("is superseded by")
Referenced from: commits https://github.com/spring-projects/spring-data-mongodb/commit/c56263d282317b81e2deba102180e69b8b092354
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.