Class Mongo::MongoDBError
In: lib/mongo/exceptions.rb
Parent: RuntimeError

Raised when MongoDB itself has returned an error.

Methods

new  

Attributes

error_code  [R]  @return The failed command‘s error code, if availab.e
result  [R]  @return The entire failed command‘s response object, if available.

Public Class methods

[Source]

# File lib/mongo/exceptions.rb, line 33
     def initialize(message=nil, error_code=nil, result=nil)
       @error_code = error_code
       @result = result
       super(message)
     end

[Validate]