123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Error::UnknownPayloadType

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Error
Instance Chain:
self, Error
Inherits: Error
  • Object
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.

Since:

  • 2.5.0

Constant Summary

Class Method Summary

Constructor Details

.new(byte) ⇒ UnknownPayloadType

Create the new exception.

Examples:

Create the new exception.

Mongo::Error::UnknownPayloadType.new(byte)

Parameters:

  • byte (String)

    The unknown payload type.

Since:

  • 2.5.0

[ GitHub ]

  
# File 'lib/mongo/error/unknown_payload_type.rb', line 36

def initialize(byte)
  super(MESSAGE % byte.inspect)
end