[SERVER-39688] The `ExtraErrorInfo` framework doesn't support namespaces Created: 20/Feb/19  Updated: 29/Oct/23  Resolved: 06/Mar/19

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 4.1.9

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Mira Carey
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Service Arch 2019-03-11
Participants:

 Description   

The `ExtraErrorInfo` framework doesn't support declaring error codes whose extra info class is under a namespace.

For example, this error info declaration:

error_code("AsyncExecutorShutDown", 280, extra="AsyncExecutorShutDownExceptionInfo")

Generates the following declaration in error_codes.h, which fails to compile:

// ErrorExtraInfo subclasses:
...
class txn::AsyncExecutorShutDownExceptionInfo;



 Comments   
Comment by Githook User [ 06/Mar/19 ]

Author:

{'name': 'Jason Carey', 'username': 'hanumantmk', 'email': 'jcarey@argv.me'}

Message: SERVER-39688 Support namespaces for ErrorExtraInfo

Adds support for ErrorExtraInfo types that are not directly in the mongo
namespace. I.e. something like mongo::nested::namespace::MyExtraInfo
Branch: master
https://github.com/mongodb/mongo/commit/5926b6e06fec4f37e13740dc2eef8b5c7a806138

Generated at Thu Feb 08 04:52:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.