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.
35 36 37 38 |
# File 'lib/i18n/exceptions.rb', line 35 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.
34 35 36 |
# File 'lib/i18n/exceptions.rb', line 34 def filename @filename end |