Sha256: 65861a8988931f656c3f039dc13d4eb8e8c462e3d6a176e463eb7dcea5e07d8c

Contents?: true

Size: 486 Bytes

Versions: 6

Compression:

Stored size: 486 Bytes

Contents

# frozen_string_literal: true

module LittleWeasel
  module Errors
    # This class describes an error when a the dictionary file is too large.
    class DictionaryFileTooLargeError < StandardError
      def initialize(msg: nil)
        unless msg.present?
          msg = 'The dictionary file size is larger than ' \
                "max_dictionary_file_megabytes: #{LittleWeasel.configuration.max_dictionary_file_megabytes}"
        end
        super(msg)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
LittleWeasel-5.0.13 lib/LittleWeasel/errors/dictionary_file_too_large_error.rb
LittleWeasel-5.0.12 lib/LittleWeasel/errors/dictionary_file_too_large_error.rb
LittleWeasel-5.0.11 lib/LittleWeasel/errors/dictionary_file_too_large_error.rb
LittleWeasel-5.0.10 lib/LittleWeasel/errors/dictionary_file_too_large_error.rb
LittleWeasel-5.0.9 lib/LittleWeasel/errors/dictionary_file_too_large_error.rb
LittleWeasel-5.0.8 lib/LittleWeasel/errors/dictionary_file_too_large_error.rb