Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1482

Consistent exception hierarchy

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: Public API
    • Labels:
      None

      Description

      Currently the auth exceptions (InvalidMechanism, Unauthorized) derive from RuntimeError and are defined in lib/mongo/auth.rb. All of driver exceptions should derive from Mongo::Error and be defined in lib/mongo/error.

      Driver should be audited to see if there are any other exception classes that need to be moved.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              oleg.pudeyev Oleg Pudeyev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: