Skip to content

Conversation

addaleax
Copy link
Collaborator

@addaleax addaleax commented Aug 4, 2023

The server team has confirmed that they prefer for downstream teams to check error codeName values rather than (only) code numbers, as the latter may go away when code is being refactored.

(Opened COMPASS-7082 and MONGOSH-1554 to track the other instances of this.)

…e number

The server team has confirmed that they prefer for downstream teams to
check error codeName values rather than (only) code numbers, as the
latter may go away when code is being refactored.
@himanshusinghs
Copy link
Contributor

Where are these error codes documented?

@addaleax
Copy link
Collaborator Author

addaleax commented Aug 4, 2023

@himanshusinghs Not sure what you’re looking for in terms of documentation, but https://github.com/mongodb/mongo/blob/1c3fb19ac8e5690e81617e815f122d8a868804a3/src/mongo/base/error_codes.yml is the source of truth for the list of all of the error codes. I’m not sure if there’s proper documentation for these beyond that file.

@addaleax addaleax merged commit 1df55f9 into main Aug 7, 2023
@addaleax addaleax deleted the stale-config-numeric-code branch August 7, 2023 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants