Exception: Kiba::Extend::JobCannotBeUsedAsLookupError
- Inherits:
-
TypeError
- Object
- TypeError
- Kiba::Extend::JobCannotBeUsedAsLookupError
- Includes:
- ErrMod
- Defined in:
- lib/kiba/extend/error.rb
Instance Method Summary collapse
-
#formatted ⇒ Object
-
#initialize(key, klass, for_job) ⇒ JobCannotBeUsedAsLookupError
constructor
A new instance of JobCannotBeUsedAsLookupError.
Methods included from ErrMod
Constructor Details
#initialize(key, klass, for_job) ⇒ JobCannotBeUsedAsLookupError
Returns a new instance of JobCannotBeUsedAsLookupError.
76 77 78 79 80 81 82 83 84 |
# File 'lib/kiba/extend/error.rb', line 76 def initialize(key, klass, for_job) @key = key @klass = klass @for_job = for_job @msg = ":#{key} cannot be used as a lookup in :#{for_job} because "\ "its src_class (#{klass}) does not include "\ "Kiba::Extend::Sources::Lookupable" super(msg) end |
Instance Method Details
#formatted ⇒ Object
86 87 88 89 90 91 |
# File 'lib/kiba/extend/error.rb', line 86 def formatted <<~STR JOB FAILED: LOOKUP FILE SETUP ERROR FOR: #{for_job} #{msg} STR end |