Exception: Kiba::Extend::Registry::Creator::TypeError
- Defined in:
- lib/kiba/extend/registry/creator/type_error.rb
Overview
Raised when you try to initialize a Creator with an invalid value (wrong class)
Instance Method Summary collapse
-
#initialize(spec) ⇒ TypeError
constructor
A new instance of TypeError.
Methods included from ErrMod
Constructor Details
#initialize(spec) ⇒ TypeError
Returns a new instance of TypeError.
11 12 13 14 |
# File 'lib/kiba/extend/registry/creator/type_error.rb', line 11 def initialize(spec) type = spec.class.to_s super("Registry::Creator cannot be called with #{type} (#{spec})") end |