Method: Mongo::Error::FileNotFound#initialize

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

#initialize(value, property) ⇒ FileNotFound

Create the new exception.

Examples:

Create the new exception.

Mongo::Error::FileNotFound.new(id, :id)

Parameters:

  • value (Object)

    The property value used to find the file.

  • property (String, Symbol)

    The name of the property used to find the file.

Since:

  • 2.1.0



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

def initialize(value, property)
  super("File with #{property} '#{value}' not found.")
end