class Mongo::Error::InvalidFileRevision
Raised if the requested file revision is not found.
@since 2.1.0
Public Class Methods
new(filename, revision)
click to toggle source
Create the new exception.
@example Create the new exception.
Mongo::Error::InvalidFileRevision.new('some-file.txt', 3)
@param [ String ] filename The name of the file. @param [ Integer ] revision The requested revision.
@since 2.1.0
Calls superclass method
Mongo::Error::new
# File lib/mongo/error/invalid_file_revision.rb, line 32 def initialize(filename, revision) super("No revision #{revision} found for file '#{filename}'.") end