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

Returns a new instance of InvalidLocaleData.



28
29
30
31
# File 'lib/i18n/exceptions.rb', line 28

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.



27
28
29
# File 'lib/i18n/exceptions.rb', line 27

def filename
  @filename
end