Sha256: e9e7335bf074a5268520622c20d2b4658663a9abfb66aed66f331fae42f36931

Contents?: true

Size: 481 Bytes

Versions: 12

Compression:

Stored size: 481 Bytes

Contents

module Lolita
  module I18n
    module Exceptions     
      class MissingInterpolationArgument < StandardError
        def initialize missing_arguments
          super "Translation should contain all these variables #{missing_arguments.join(', ')}"
        end
      end

      class TranslationDoesNotMatch < ArgumentError
        def initialize translation, original
          super "Translation #{translation} does not match #{original}"
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
lolita-i18n-0.5.9 lib/lolita-i18n/exceptions.rb
lolita-i18n-0.6.0 lib/lolita-i18n/exceptions.rb
lolita-i18n-0.5.8 lib/lolita-i18n/exceptions.rb
lolita-i18n-0.5.7 lib/lolita-i18n/exceptions.rb
lolita-i18n-0.5.6 lib/lolita-i18n/exceptions.rb
lolita-i18n-0.5.5 lib/lolita-i18n/exceptions.rb
lolita-i18n-0.5.3 lib/lolita-i18n/exceptions.rb
lolita-i18n-0.5.2 lib/lolita-i18n/exceptions.rb
lolita-i18n-0.5.1 lib/lolita-i18n/exceptions.rb
lolita-i18n-0.4.3 lib/lolita-i18n/exceptions.rb
lolita-i18n-0.4.2 lib/lolita-i18n/exceptions.rb
lolita-i18n-0.4.0 lib/lolita-i18n/exceptions.rb