Exception: ChefCore::Text::TextWrapper::InvalidKey

Inherits:
TextError
  • Object
show all
Defined in:
lib/chef_core/text/text_wrapper.rb

Instance Attribute Summary

Attributes inherited from TextError

#line

Instance Method Summary collapse

Methods inherited from TextError

#set_call_context

Constructor Details

#initialize(path, terminus) ⇒ InvalidKey

Returns a new instance of InvalidKey.



67
68
69
70
71
72
73
74
# File 'lib/chef_core/text/text_wrapper.rb', line 67

def initialize(path, terminus)
  set_call_context
  # Calling back into Text here seems icky, this is an error
  # that only engineering should see.
  message = "i18n key #{path}.#{terminus} does not exist.\n"
  message << "  Referenced from #{line}"
  super(message)
end