class Mongo::Error::InvalidMinPoolSize
Exception that is raised when trying to create a client with an invalid
min_pool_size option.
@since 2.4.2
Public Class Methods
new(min, max)
click to toggle source
Instantiate the new exception.
@example Instantiate the exception.
Mongo::Error::InvalidMinPoolSize.new(10, 5)
@since 2.4.2
Calls superclass method
Mongo::Error::new
# 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