Class: Mongo::Error::UnknownPayloadType
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Error
|
|
|
Instance Chain:
self,
Error
|
|
| Inherits: |
Error
|
| 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
-
MESSAGE =
# File 'lib/mongo/error/unknown_payload_type.rb', line 26
The error message.
'Unknown payload type (%s) encountered when creating or reading an OP_MSG wire protocol message.'
Class Method Summary
-
.new(byte) ⇒ UnknownPayloadType
constructor
Create the new exception.
Constructor Details
.new(byte) ⇒ UnknownPayloadType
Create the new exception.
# File 'lib/mongo/error/unknown_payload_type.rb', line 36
def initialize(byte) super(MESSAGE % byte.inspect) end