Skip to content
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

GODRIVER-3086 Add ErrorCodes to ServerError API #1894

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

prestonvasquez
Copy link
Collaborator

GODRIVER-3086

Summary

Extend the ServerError interface to include ErrorCodes which will return a list of deduplicated error codes returned by the server during the lifetime of operation execution.

Background & Motivation

The Go Driver provides a way to check if a ServerError has a specific error code, but no way to determine all error codes that occurred during the operation.

@prestonvasquez prestonvasquez marked this pull request as draft November 15, 2024 22:29
@prestonvasquez prestonvasquez marked this pull request as ready for review November 15, 2024 22:39
@mongodb-drivers-pr-bot mongodb-drivers-pr-bot bot added the priority-3-low Low Priority PR for Review label Nov 15, 2024
Copy link
Contributor

API Change Report

./v2/mongo

compatible changes

BulkWriteException.ErrorCodes: added
CommandError.ErrorCodes: added
ServerError.ErrorCodes: added
WriteError.ErrorCodes: added
WriteException.ErrorCodes: added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-3-low Low Priority PR for Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant