123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Error::MaxMessageSize

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/max_message_size.rb

Overview

Exception that is raised when trying to send a message that exceeds max message size.

Since:

  • 2.0.0

Constant Summary

Class Method Summary

Constructor Details

.new(max_size = nil) ⇒ MaxMessageSize

Instantiate the new exception.

Examples:

Instantiate the exception.

Mongo::Error::MaxMessageSize.new(max)

Parameters:

  • max_size (Integer) (defaults to: nil)

    The maximum message size.

Since:

  • 2.0.0

[ GitHub ]

  
# File 'lib/mongo/error/max_message_size.rb', line 37

def initialize(max_size = nil)
  super(max_size ? MESSAGE + " The max is #{max_size}." : MESSAGE)
end