Exception: Ambry::NotFoundError

Inherits:
AmbryError
  • Object
show all
Defined in:
lib/ambry.rb

Overview

Raised when a single instance is expected but could not be found.

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ NotFoundError

Returns a new instance of NotFoundError

Parameters:

  • klass (String)

    The class from which the error originated.

  • key (String)

    The key whose lookup trigged the error.


60
61
62
# File 'lib/ambry.rb', line 60

def initialize(*args)
  super('Could not find %s with key "%s"' % args)
end