Exception: UNotifier::EmptyLocaleKeyError
- Inherits:
-
UNotifierError
- Object
- StandardError
- UNotifierError
- UNotifier::EmptyLocaleKeyError
- Defined in:
- lib/exceptions.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key) ⇒ EmptyLocaleKeyError
constructor
A new instance of EmptyLocaleKeyError.
Constructor Details
#initialize(key) ⇒ EmptyLocaleKeyError
Returns a new instance of EmptyLocaleKeyError.
7 8 9 10 11 |
# File 'lib/exceptions.rb', line 7 def initialize(key) @key = key = ":locale_key parameter is required for fetching '#{key}' locale" super() end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
5 6 7 |
# File 'lib/exceptions.rb', line 5 def key @key end |