Exception: Kiba::Extend::NonSymbolLookupOnError
- Inherits:
-
TypeError
- Object
- TypeError
- Kiba::Extend::NonSymbolLookupOnError
- Includes:
- ErrMod
- Defined in:
- lib/kiba/extend/error.rb
Overview
Exception raised if the lookup key value for the file is not a Symbol
Instance Method Summary collapse
-
#formatted ⇒ Object
-
#initialize(filekey, for_job) ⇒ NonSymbolLookupOnError
constructor
A new instance of NonSymbolLookupOnError.
Methods included from ErrMod
Constructor Details
#initialize(filekey, for_job) ⇒ NonSymbolLookupOnError
Returns a new instance of NonSymbolLookupOnError.
144 145 146 147 148 149 150 151 |
# File 'lib/kiba/extend/error.rb', line 144 def initialize(filekey, for_job) @filekey = filekey @for_job = for_job @msg = "The `lookup_on` value in the registry entry hash for "\ ":#{filekey} is not a Ruby Symbol. "\ "Prepend a : to the field name to fix." super(msg) end |
Instance Method Details
#formatted ⇒ Object
153 154 155 156 157 158 |
# File 'lib/kiba/extend/error.rb', line 153 def formatted <<~STR JOB FAILED: LOOKUP FILE SETUP ERROR FOR: #{for_job} #{msg} STR end |