Exception: Mack::Localization::Errors::UnknownStringKey

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mack-localization/errors.rb

Overview

Raise this error when the user is trying to get a string using an invalid key

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ UnknownStringKey

Returns a new instance of UnknownStringKey.



38
39
40
# File 'lib/mack-localization/errors.rb', line 38

def initialize(key)
  super("Key: #{key} cannot be found in the language files")
end