class Mongo::Error::InvalidFile

Raised if the file md5 and server md5 do not match when acknowledging GridFS writes.

@since 2.0.0

Public Class Methods

new(client_md5, server_md5) click to toggle source

Create the new exception.

@example Create the new exception.

Mongo::Error::InvalidFile.new(file_md5, server_md5)

@param [ String ] client_md5 The client side file md5. @param [ String ] server_md5 The server side file md5.

@since 2.0.0

Calls superclass method Mongo::Error::new
# File lib/mongo/error/invalid_file.rb, line 33
def initialize(client_md5, server_md5)
  super("File MD5 on client side is #{client_md5} but the server reported #{server_md5}.")
end