Exception: Mongo::Error::InvalidFileRevision

Inherits:
Mongo::Error
  • Object
show all
Defined in:
lib/mongo/error/invalid_file_revision.rb

Overview

Raised if the requested file revision is not found.

Since:

  • 2.1.0

Constant Summary

Constants inherited from Mongo::Error

BAD_VALUE, CODE, CURSOR_NOT_FOUND, ERR, ERRMSG, ERROR, UNKNOWN_ERROR, WRITE_CONCERN_ERROR, WRITE_CONCERN_ERRORS, WRITE_ERRORS

Instance Method Summary collapse

Constructor Details

#initialize(filename, revision) ⇒ InvalidFileRevision

Create the new exception.

Examples:

Create the new exception.

Mongo::Error::InvalidFileRevision.new('some-file.txt', 3)

Parameters:

  • filename (String)

    The name of the file.

  • revision (Integer)

    The requested revision.

Since:

  • 2.1.0



32
33
34
# File 'lib/mongo/error/invalid_file_revision.rb', line 32

def initialize(filename, revision)
  super("No revision #{revision} found for file '#{filename}'.")
end