Exception: Rmodel::NotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rmodel/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(repo_klass, criteria) ⇒ NotFound

Returns a new instance of NotFound.



3
4
5
# File 'lib/rmodel/errors.rb', line 3

def initialize(repo_klass, criteria)
  super("#{repo_klass.class.name} can't find an object by #{criteria}")
end