Exception: Norman::NotFoundError

Inherits:
NormanError
  • Object
show all
Defined in:
lib/norman.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.



50
51
52
# File 'lib/norman.rb', line 50

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