lib/vendor/i18n/lib/i18n/exceptions.rb in yaroslav-russian-0.0.6 vs lib/vendor/i18n/lib/i18n/exceptions.rb in yaroslav-russian-0.0.7

- old
+ new

@@ -1,8 +1,8 @@ module I18n class ArgumentError < ::ArgumentError; end - + class InvalidLocale < ArgumentError attr_reader :locale def initialize(locale) @locale = locale super "#{locale.inspect} is not a valid locale" @@ -40,14 +40,14 @@ def initialize(key, string) @key, @string = key, string super "reserved key #{key.inspect} used in #{string.inspect}" end end - + class UnknownFileType < ArgumentError attr_reader :type, :filename def initialize(type, filename) @type, @filename = type, filename super "can not load translations from #{filename}, the file type #{type} is not known" end end -end +end \ No newline at end of file