Class: ProxyFetcher::Exceptions::AdapterSetupError

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

Instance Method Summary collapse

Constructor Details

#initialize(adapter_name, reason) ⇒ AdapterSetupError

Returns a new instance of AdapterSetupError.



53
54
55
56
57
# File 'lib/proxy_fetcher/exceptions.rb', line 53

def initialize(adapter_name, reason)
  adapter = demodulize(adapter_name.gsub('Adapter', ''))

  super("can't setup '#{adapter}' adapter during the following error:\n\t#{reason}'")
end