class Mongo::Error::FileNotFound
Raised if a file is deleted from a GridFS but it is not found.
@since 2.1.0
Public Class Methods
new(value, property)
click to toggle source
Create the new exception.
@example Create the new exception.
Mongo::Error::FileNotFound.new(id, :id)
@param [ Object ] value The property value used to find the file. @param [ String, Symbol
] property The name of the property used to find the file.
@since 2.1.0
Calls superclass method
Mongo::Error::new
# File lib/mongo/error/file_not_found.rb, line 32 def initialize(value, property) super("File with #{property} '#{value}' not found.") end