Sha256: 52cba4a9114bf879d927ca23c471d478a627b7047f33100e984d0cbfe046e14f

Contents?: true

Size: 485 Bytes

Versions: 3

Compression:

Stored size: 485 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

3 entries across 3 versions & 1 rubygems

Version Path
LittleWeasel-5.0.7 lib/LittleWeasel/errors/dictionary_file_too_large_error.rb
LittleWeasel-5.0.6 lib/LittleWeasel/errors/dictionary_file_too_large_error.rb
LittleWeasel-5.0.5 lib/LittleWeasel/errors/dictionary_file_too_large_error.rb