Class Moped::Errors::MongoError
In: lib/moped/errors.rb
Parent: StandardError

Generic error class for exceptions generated on the remote MongoDB server.

Methods

new  

Attributes

command  [R]  @attribute [r] details The details about the error. @attribute [r] command The command that generated the error.
details  [R]  @attribute [r] details The details about the error. @attribute [r] command The command that generated the error.

Public Class methods

Create a new operation failure exception.

@example Create the new error.

  MongoError.new(command, details)

@param [ Object ] command The command that generated the error. @param [ Hash ] details The details about the error.

@since 1.0.0

[Validate]