Exception: UNotifier::UnknownLocaleKeyError
- Inherits:
-
UNotifierError
- Object
- StandardError
- UNotifierError
- UNotifier::UnknownLocaleKeyError
- Defined in:
- lib/exceptions.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#locale_key ⇒ Object
readonly
Returns the value of attribute locale_key.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(key, locale_key, options) ⇒ UnknownLocaleKeyError
constructor
A new instance of UnknownLocaleKeyError.
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, ) @key = key @locale_key = locale_key @options = = "Unkown locale key '#{@locale_key}' for '#{@key}'. Available options: #{@options}" super() end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
58 59 60 |
# File 'lib/exceptions.rb', line 58 def key @key end |
#locale_key ⇒ Object (readonly)
Returns the value of attribute locale_key.
58 59 60 |
# File 'lib/exceptions.rb', line 58 def locale_key @locale_key end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
58 59 60 |
# File 'lib/exceptions.rb', line 58 def @options end |