Exception: Mongo::Error::UnknownPayloadType
- Inherits:
-
Mongo::Error
- Object
- StandardError
- Mongo::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.'
Constants inherited from Mongo::Error
BAD_VALUE, CODE, CURSOR_NOT_FOUND, ERR, ERRMSG, ERROR, TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_ERROR, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL, WRITE_CONCERN_ERROR, WRITE_CONCERN_ERRORS, WRITE_ERRORS
Instance Attribute Summary
Attributes included from Notable
#connection_global_id, #generation, #service_id
Instance Method Summary collapse
-
#initialize(byte) ⇒ UnknownPayloadType
constructor
Create the new exception.
Methods inherited from Mongo::Error
#change_stream_resumable?, #write_concern_error_label?, #write_concern_error_labels
Methods included from ChangeStreamResumable
Methods included from WriteRetryable
Methods included from Labelable
Methods included from Notable
#add_note, #add_notes, #notes, #to_s
Constructor Details
#initialize(byte) ⇒ UnknownPayloadType
Create the new exception.
39 40 41 |
# File 'lib/mongo/error/unknown_payload_type.rb', line 39 def initialize(byte) super(MESSAGE % byte.inspect) end |