Exception: BrowserCrawler::Errors::InvalidHooksType

Inherits:
StandardError
  • Object
show all
Defined in:
lib/browser_crawler/errors/invalid_hooks_type.rb

Instance Method Summary collapse

Constructor Details

#initialize(invalid_type:) ⇒ InvalidHooksType

Returns a new instance of InvalidHooksType.



4
5
6
7
8
9
# File 'lib/browser_crawler/errors/invalid_hooks_type.rb', line 4

def initialize(invalid_type:)
  message = "Passed hooks type `#{invalid_type}` is invalid." \
            ' A type has to apply one of the follow values:' \
            " #{HooksContainer::VALID_TYPES.join(', ')}"
  super(message)
end