Class: Mongo::Error::InvalidMinPoolSize

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

Overview

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

Since:

  • 2.4.2

Instance Method Summary collapse

Constructor Details

#initialize(min, max) ⇒ InvalidMinPoolSize

Instantiate the new exception.

Examples:

Instantiate the exception.

Mongo::Error::InvalidMinPoolSize.new(10, 5)

Since:

  • 2.4.2



30
31
32
# File 'lib/mongo/error/invalid_min_pool_size.rb', line 30

def initialize(min, max)
  super("Invalid min pool size: #{min}. Please ensure that it is less than the max size: #{max}. ")
end