class Mongo::Error::Command
- Mongo::Error::Command
- Mongo::Error
- Exception
- Reference
- Object
Overview
Is raised when the server replies with an error to a command request.
Defined in:
cryomongo/error.crConstant Summary
-
NOT_MASTER_CODES =
{10107, 13435}
-
NOT_MASTER_MESSAGES =
{"not master"}
-
RECOVERING_CODES =
{11600, 11602, 13436, 189, 91}
-
See: https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst#not-master-and-node-is-recovering
-
RECOVERING_MESSAGES =
{"not master or secondary", "node is recovering"}
-
RESUMABLE_CODES =
{6, 7, 89, 91, 189, 262, 9001, 10107, 11600, 11602, 13435, 13436, 63, 150, 13388, 234, 133}
-
SHUTDOWN_CODES =
{11600, 91}
Constructors
Instance Method Summary
- #not_master?
- #recovering?
- #resumable?
- #shutdown?
- #state_change?
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
Constructor Detail
Instance Method Detail
def to_s(io : IO)
#
Description copied from class Reference
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>