Exception: Kiba::Extend::Registry::Creator::TypeError

Inherits:
Error
  • Object
show all
Defined in:
lib/kiba/extend/registry/creator/type_error.rb

Overview

Raised when you try to initialize a Creator with an invalid type of creator

Since:

  • 2.2.0

Instance Method Summary collapse

Methods included from ErrMod

#calling_job, #info

Constructor Details

#initialize(spec) ⇒ TypeError

Returns a new instance of TypeError.

Since:

  • 2.2.0



10
11
12
13
# File 'lib/kiba/extend/registry/creator/type_error.rb', line 10

def initialize(spec)
  type = spec.class.to_s
  super("Registry::Creator cannot be called with #{type} (#{spec})")
end