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.

Options Hash (options):

Since:

  • 2.9.0



42
43
44
45
46
47
48
# File 'lib/mongo/error/connection_check_out_timeout.rb', line 42

def initialize(msg, options)
  super(msg)
  @address = options[:address]
  unless @address
    raise ArgumentError, 'Address argument is required'
  end
end