Exception: Shaf::RegistrableFactory::NoIdentifiersError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/shaf/registrable_factory.rb

Instance Method Summary collapse

Constructor Details

#initialize(clazz) ⇒ NoIdentifiersError

Returns a new instance of NoIdentifiersError.



6
7
8
9
10
11
# File 'lib/shaf/registrable_factory.rb', line 6

def initialize(clazz)
  super <<~ERR
    #{clazz} does not have an @identifiers ivar.
    Did you perhaps forget to call `#{clazz}.identifier`?
  ERR
end