Class: ProxyFetcher::Exceptions::UnknownAdapter

Inherits:
ProxyFetcher::Error
  • Object
show all
Defined in:
lib/proxy_fetcher/exceptions.rb

Overview

Exception for cases when user tries to set wrong HTML parser adapter in the configuration.

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ UnknownAdapter

Initialize new exception

Parameters:

  • name (String)

    configured adapter name



82
83
84
# File 'lib/proxy_fetcher/exceptions.rb', line 82

def initialize(name)
  super("unknown adapter '#{name}'")
end