Exception: Mack::Localization::Errors::UnsupportedLanguage
- Inherits:
-
StandardError
- Object
- StandardError
- Mack::Localization::Errors::UnsupportedLanguage
- Defined in:
- lib/mack-localization/errors.rb
Overview
Raise this error when caller specified unsupported language. Supported language is defined in configuration as an array of language codes.
Instance Method Summary collapse
-
#initialize(lang) ⇒ UnsupportedLanguage
constructor
A new instance of UnsupportedLanguage.
Constructor Details
#initialize(lang) ⇒ UnsupportedLanguage
Returns a new instance of UnsupportedLanguage.
10 11 12 |
# File 'lib/mack-localization/errors.rb', line 10 def initialize(lang) super("Locale: #{lang} is not currently supported.") end |