Exception: Kiba::Extend::NoLookupOnError
- Inherits:
-
NameError
- Object
- NameError
- Kiba::Extend::NoLookupOnError
- Includes:
- ErrMod
- Defined in:
- lib/kiba/extend/error.rb
Overview
Exception raised if FileRegistry contains no lookup key for file
Instance Method Summary collapse
-
#formatted ⇒ Object
-
#initialize(filekey, for_job) ⇒ NoLookupOnError
constructor
A new instance of NoLookupOnError.
Methods included from ErrMod
Constructor Details
#initialize(filekey, for_job) ⇒ NoLookupOnError
Returns a new instance of NoLookupOnError.
176 177 178 179 180 181 182 |
# File 'lib/kiba/extend/error.rb', line 176 def initialize(filekey, for_job) @filekey = filekey @for_job = for_job msg = "No lookup_on value in registry entry hash for :#{filekey} -- "\ "Used as lookup in job: :#{for_job})" super(msg) end |
Instance Method Details
#formatted ⇒ Object
184 185 186 187 188 189 190 |
# File 'lib/kiba/extend/error.rb', line 184 def formatted <<~STR JOB FAILED: LOOKUP FILE SETUP ERROR FOR: #{for_job} To fix: Add `lookup_on` to registry entry hash for :#{filekey} STR end |