Class: ProxyFetcher::Exceptions::AdapterSetupError
- Inherits:
-
ProxyFetcher::Error
- Object
- ProxyFetcher::Exceptions::AdapterSetupError
- Defined in:
- lib/proxy_fetcher/exceptions.rb
Instance Method Summary collapse
-
#initialize(adapter_name, reason) ⇒ AdapterSetupError
constructor
A new instance of AdapterSetupError.
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 |