Exception: Mack::Localization::Errors::UnsupportedLanguage

Inherits:
StandardError
  • Object
show all
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

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