Class Mongo::Error::UnexpectedResponse
In: lib/mongo/error/unexpected_response.rb
Parent: Error

Raised if the response read from the socket does not match the latest query.

@since 2.2.6

Methods

new  

Public Class methods

Create the new exception.

@example Create the new exception.

  Mongo::Error::UnexpectedResponse.new(expected_response_to, response_to)

@param [ Integer ] expected_response_to The last request id sent. @param [ Integer ] response_to The actual response_to of the reply.

@since 2.2.6

[Validate]