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

Initial implementation of base error classes

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0.0
    • Affects Version/s: 2.0.0
    • Component/s: None
    • None

      Might use this for guidance: https://wiki.10gen.com/display/10GEN/Driver+Exception+Hierarchy

      This is what the Ruby Exception hierarchy looks like:

      Exception

      • NoMemoryError
      • ScriptError
        • LoadError
        • NotImplementedError
        • SyntaxError
      • SignalException
        • Interrupt
      • StandardError
        • ArgumentError
        • IOError
          • EOFError
        • IndexError
        • LocalJumpError
        • NameError
          • NoMethodError
        • RangeError
          • FloatDomainError
        • RegexpError
        • RuntimeError
        • SecurityError
        • SystemCallError
        • SystemStackError
        • ThreadError
        • TypeError
        • ZeroDivisionError

      SystemExit
      fatal

      Proposed Hierarchy (from wiki):

      MongoException

      • MongoDriverException
        • MongoSocketException
          • MongoSocketReadTimeoutException
          • MongoSocketWriteTimeoutException
          • MongoConnectionException
        • MongoProtocolException
      • MongoOperationException
        • MongoAuthenticationException
        • MongoWriteConcernException
          • MongoDuplicateKeyException
          • MongoNotMasterException
          • MongoWTimeoutException
        • MongoQueryException
          • MongoQueryTimeoutException (for $maxTime, when available)
          • MongoCursorNotFoundException
        • MongoMultipleException (for mongos)

            Assignee:
            tyler@10gen.com Tyler Brock
            Reporter:
            tyler@10gen.com Tyler Brock
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: