Method: Mongo::Error::ConnectionCheckOutTimeout#initialize
- Defined in:
- lib/mongo/error/connection_check_out_timeout.rb
#initialize(msg, options) ⇒ ConnectionCheckOutTimeout
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Instantiate the new exception.
42 43 44 45 46 47 48 |
# File 'lib/mongo/error/connection_check_out_timeout.rb', line 42 def initialize(msg, ) super(msg) @address = [:address] unless @address raise ArgumentError, 'Address argument is required' end end |