Skip to content

feat(NODE-7100): make MONGODB_ERROR_CODES public #4615

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Khongchai
Copy link

Description

Made MONGODB_ERROR_CODES public

What is the motivation for this change?

We have a use case where accessing the error code definition is useful for error checking. Checking e.code === MONGODB_ERROR_CODES.Something seems pretty useful. The object is already frozen so we can't just accidentally modify this.

This is a small type change so I haven't run any tests / compilation yet. But would be happy to do so if still required! Thanks, mongodb team

@Khongchai Khongchai requested a review from a team as a code owner August 7, 2025 07:51
@durran durran changed the title made MONGODB_ERROR_CODES public feat(NODE-7100): make MONGODB_ERROR_CODES public Aug 7, 2025
@durran durran added tracked-in-jira Ticket filed in MongoDB's Jira system External Submission PR submitted from outside the team labels Aug 7, 2025
@durran
Copy link
Member

durran commented Aug 7, 2025

Hi @Khongchai, thanks for the contribution. We have a ticket tracking this and will discuss in our triage next week.

@baileympearson baileympearson self-assigned this Aug 11, 2025
@baileympearson baileympearson added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
External Submission PR submitted from outside the team Primary Review In Review with primary reviewer, not yet ready for team's eyes tracked-in-jira Ticket filed in MongoDB's Jira system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants