Exception: I18n::InvalidLocaleData
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ArgumentError
- I18n::InvalidLocaleData
- Defined in:
- lib/i18n/exceptions.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
Instance Method Summary collapse
-
#initialize(filename, exception_message) ⇒ InvalidLocaleData
constructor
A new instance of InvalidLocaleData.
Constructor Details
#initialize(filename, exception_message) ⇒ InvalidLocaleData
Returns a new instance of InvalidLocaleData.
42 43 44 45 |
# File 'lib/i18n/exceptions.rb', line 42 def initialize(filename, ) @filename, @exception_message = filename, super "can not load translations from #{filename}: #{}" end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
41 42 43 |
# File 'lib/i18n/exceptions.rb', line 41 def filename @filename end |