class Mongo::Error::UnknownPayloadType
Raised if an unknown payload type is encountered when an OP_MSG is created or read.
@since 2.5.0
Constants
- MESSAGE
The error message.
@since 2.5.0
Public Class Methods
new(byte)
click to toggle source
Create the new exception.
@example Create the new exception.
Mongo::Error::UnknownPayloadType.new(byte)
@param [ String ] byte The unknown payload type.
@since 2.5.0
Calls superclass method
Mongo::Error::new
# File lib/mongo/error/unknown_payload_type.rb, line 36 def initialize(byte) super(MESSAGE % byte.inspect) end