Exception: I18n::UnknownFileType

Inherits:
ArgumentError show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, filename) ⇒ UnknownFileType

Returns a new instance of UnknownFileType.



108
109
110
111
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/exceptions.rb', line 108

def initialize(type, filename)
  @type, @filename = type, filename
  super "can not load translations from #{filename}, the file type #{type} is not known"
end

Instance Attribute Details

#filenameObject (readonly)

Returns the value of attribute filename.



107
108
109
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/exceptions.rb', line 107

def filename
  @filename
end

#typeObject (readonly)

Returns the value of attribute type.



107
108
109
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/exceptions.rb', line 107

def type
  @type
end