Exception: Moped::Errors::MongoError
- Defined in:
- lib/moped/errors.rb
Overview
Generic error class for exceptions generated on the remote MongoDB server.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
- #command The command that generated the error.(Thecommandthatgeneratedtheerror.) ⇒ Object readonly
-
#details ⇒ Object
readonly
Returns the value of attribute details.
- #details The details about the error.(Thedetailsabouttheerror.) ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(command, details) ⇒ MongoError
constructor
Create a new operation failure exception.
Constructor Details
#initialize(command, details) ⇒ MongoError
Create a new operation failure exception.
50 51 52 53 |
# File 'lib/moped/errors.rb', line 50 def initialize(command, details) @command, @details = command, details super() end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
39 40 41 |
# File 'lib/moped/errors.rb', line 39 def command @command end |
#command The command that generated the error.(Thecommandthatgeneratedtheerror.) ⇒ Object (readonly)
39 |
# File 'lib/moped/errors.rb', line 39 attr_reader :details, :command |
#details ⇒ Object (readonly)
Returns the value of attribute details.
39 40 41 |
# File 'lib/moped/errors.rb', line 39 def details @details end |
#details The details about the error.(Thedetailsabouttheerror.) ⇒ Object (readonly)
39 |
# File 'lib/moped/errors.rb', line 39 attr_reader :details, :command |