Parent

Methods

Mongo::MongoDBError

Raised when MongoDB itself has returned an error.

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

new(message=nil, error_code=nil, result=nil) click to toggle source
# File lib/mongo/exceptions.rb, line 14
def initialize(message=nil, error_code=nil, result=nil)
  @error_code = error_code
  @result = result
  super(message)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.