Exception: LittleWeasel::Errors::DictionaryFileTooLargeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/LittleWeasel/errors/dictionary_file_too_large_error.rb

Overview

This class describes an error when a the dictionary file is too large.

Instance Method Summary collapse

Constructor Details

#initialize(msg: nil) ⇒ DictionaryFileTooLargeError

Returns a new instance of DictionaryFileTooLargeError.



7
8
9
10
11
12
13
# File 'lib/LittleWeasel/errors/dictionary_file_too_large_error.rb', line 7

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