Exception: UNotifier::UnknownLocaleKeyError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, locale_key, options) ⇒ UnknownLocaleKeyError

Returns a new instance of UnknownLocaleKeyError.



60
61
62
63
64
65
66
# File 'lib/exceptions.rb', line 60

def initialize(key, locale_key, options)
  @key = key
  @locale_key = locale_key
  @options = options
  message = "Unkown locale key '#{@locale_key}' for '#{@key}'. Available options: #{@options}"
  super(message)
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



58
59
60
# File 'lib/exceptions.rb', line 58

def key
  @key
end

#locale_keyObject (readonly)

Returns the value of attribute locale_key.



58
59
60
# File 'lib/exceptions.rb', line 58

def locale_key
  @locale_key
end

#optionsObject (readonly)

Returns the value of attribute options.



58
59
60
# File 'lib/exceptions.rb', line 58

def options
  @options
end