[SERVER-51374] Create IDL definition for ErrorReply Created: 05/Oct/20  Updated: 29/Oct/23  Resolved: 06/Nov/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Task Priority: Major - P3
Reporter: Samyukta Lanka Assignee: George Wangensteen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Repl 2020-11-02, Repl 2020-11-16
Participants:

 Description   

Create a struct in basic_types.idl:

enums:
  OkZeroEnum:
    description: "An error reply's 'ok' value"
    type: int
    values:
      kZero: 0
 
structs:
  ErrorReply:
    description: "Error reply structure for all commands"
    strict: false
    fields:
      ok: OkZeroEnum
      code: int
      codeName: string
      errmsg: string
      errorLabels:
        type: array<string>
        optional: true

Today we generate error replies with two handwritten functions, appendCommandStatusNoThrow and augmentReplyWithStatus. Update these functions to use ErrorReply.



 Comments   
Comment by Githook User [ 06/Nov/20 ]

Author:

{'name': 'George Wangensteen', 'email': 'george.wangensteen@mongodb.com'}

Message: SERVER-51374 Create IDL definition for ErrorReply
Branch: master
https://github.com/mongodb/mongo/commit/d12213c0198b2a2adfa033a8661e026c9e9c7f7f

Generated at Thu Feb 08 05:25:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.