class BrowserCrawler::Errors::InvalidHooksType

Public Class Methods

new(invalid_type:) click to toggle source
Calls superclass method
# 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