Method: Mongo::Error::UnexpectedResponse#initialize
- Defined in:
- lib/mongo/error/unexpected_response.rb
#initialize(expected_response_to, response_to) ⇒ UnexpectedResponse
Create the new exception.
35 36 37 38 |
# File 'lib/mongo/error/unexpected_response.rb', line 35 def initialize(expected_response_to, response_to) super("Unexpected response. Got response for request ID #{response_to} " + "but expected response for request ID #{expected_response_to}") end |