Exception: BrowserCrawler::Errors::InvalidHooksType
- Inherits:
-
StandardError
- Object
- StandardError
- BrowserCrawler::Errors::InvalidHooksType
- Defined in:
- lib/browser_crawler/errors/invalid_hooks_type.rb
Instance Method Summary collapse
-
#initialize(invalid_type:) ⇒ InvalidHooksType
constructor
A new instance of InvalidHooksType.
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:) = "Passed hooks type `#{invalid_type}` is invalid." \ ' A type has to apply one of the follow values:' \ " #{HooksContainer::VALID_TYPES.join(', ')}" super() end |