Exception: UNotifier::EmptyLocaleKeyError

Inherits:
UNotifierError show all
Defined in:
lib/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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
  message = ":locale_key parameter is required for fetching '#{key}' locale"
  super(message)
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



5
6
7
# File 'lib/exceptions.rb', line 5

def key
  @key
end