Create IDL definition for ErrorReply

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Repl 2020-11-02, Repl 2020-11-16
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            George Wangensteen (Inactive)
            Reporter:
            Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: