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.



42
43
44
45
# File 'lib/i18n/exceptions.rb', line 42

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.



41
42
43
# File 'lib/i18n/exceptions.rb', line 41

def filename
  @filename
end