Class: Mongo::Error::UnknownPayloadType
- Inherits:
-
Error
- Object
- Error
- Mongo::Error::UnknownPayloadType
- Defined in:
- lib/mongo/error/unknown_payload_type.rb
Overview
Raised if an unknown payload type is encountered when an OP_MSG is created or read.
Constant Summary collapse
- MESSAGE =
The error message.
'Unknown payload type (%s) encountered when creating or reading an OP_MSG wire protocol message.'
Instance Method Summary collapse
-
#initialize(byte) ⇒ UnknownPayloadType
constructor
Create the new exception.
Constructor Details
#initialize(byte) ⇒ UnknownPayloadType
Create the new exception.
36 37 38 |
# File 'lib/mongo/error/unknown_payload_type.rb', line 36 def initialize(byte) super(MESSAGE % byte.inspect) end |