Exception: Mongo::Error::InvalidMinPoolSize
- Inherits:
-
Mongo::Error
- Object
- StandardError
- Mongo::Error
- Mongo::Error::InvalidMinPoolSize
- 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.
Constant Summary
Constants inherited from Mongo::Error
BAD_VALUE, CODE, CURSOR_NOT_FOUND, ERR, ERRMSG, ERROR, UNKNOWN_ERROR, WRITE_CONCERN_ERROR, WRITE_CONCERN_ERRORS, WRITE_ERRORS
Instance Method Summary collapse
-
#initialize(min, max) ⇒ InvalidMinPoolSize
constructor
Instantiate the new exception.
Constructor Details
#initialize(min, max) ⇒ InvalidMinPoolSize
Instantiate the new exception.
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 |