123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Error::InvalidFileRevision

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Error
Instance Chain:
self, Error
Inherits: Error
  • Object
Defined in: lib/mongo/error/invalid_file_revision.rb

Overview

Raised if the requested file revision is not found.

Since:

  • 2.1.0

Class Method Summary

Constructor Details

.new(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

[ GitHub ]

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

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