Exception: I18n::InvalidLocaleData

Inherits:
ArgumentError show all
Defined in:
lib/i18n/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filename, exception_message) ⇒ InvalidLocaleData



35
36
37
38
# File 'lib/i18n/exceptions.rb', line 35

def initialize(filename, exception_message)
  @filename, @exception_message = filename, exception_message
  super "can not load translations from #{filename}: #{exception_message}"
end

Instance Attribute Details

#filenameObject (readonly)

Returns the value of attribute filename



34
35
36
# File 'lib/i18n/exceptions.rb', line 34

def filename
  @filename
end