Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-18664

Refactor command error handling

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.1.4
    • None
    • Internal Code
    • None
    • Fully Compatible
    • Platform 4 06/05/15

    Description

      Right now we catch AssertionException/UserException multiple times and duplicate the same logic for generating error responses throughout the command execution pipeline.

      We should make one method to generate an error reply, and let all exceptions bubble up to a canonical place where it is called.

      Attachments

        Activity

          People

            adam.midvidy Adam Midvidy
            adam.midvidy Adam Midvidy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: