Method: Mongo::Error::InvalidFileRevision#initialize

Defined in:
lib/mongo/error/invalid_file_revision.rb

#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



35
36
37
# File 'lib/mongo/error/invalid_file_revision.rb', line 35

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