Class: Mongo::Error::InvalidMaxConnecting

Inherits:
Error
  • Object
show all
Defined in:
lib/mongo/error/invalid_max_connecting.rb

Overview

Exception that is raised when trying to create a client with an invalid max_connecting option.

Since:

  • 2.0.0

Instance Method Summary collapse

Constructor Details

#initialize(max_connecting) ⇒ InvalidMaxConnecting

Instantiate the new exception.

Since:

  • 2.0.0



23
24
25
# File 'lib/mongo/error/invalid_max_connecting.rb', line 23

def initialize(max_connecting)
  super("Invalid max_connecting: #{max_connecting}. Please ensure that it is greater than zero. ")
end