Class Mongo::Error::MaxMessageSize
In: lib/mongo/error/max_message_size.rb
Parent: Error

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

@since 2.0.0

Methods

new  

Constants

MESSAGE = "Message exceeds allowed max message size.".freeze   The message is constant.

@since 2.0.0

Public Class methods

Instantiate the new exception.

@example Instantiate the exception.

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

@param [ Integer ] max_size The maximum message size.

@since 2.0.0

[Validate]