Skip to content

Provide more user friendly error messages based on MongoDB error codes and context of use. [DATAMONGO-1876] #2778

Open
@spring-projects-issues

Description

@spring-projects-issues

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 c56263d

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions