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 value (wrong class)

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



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