Class: ProxyFetcher::Exceptions::WrongCustomClass

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

Overview

Exception for wrong custom classes (such as ProxyValidator or HTTP Client).

Instance Method Summary collapse

Constructor Details

#initialize(klass, methods) ⇒ WrongCustomClass

Initialize new exception



15
16
17
18
# File 'lib/proxy_fetcher/exceptions.rb', line 15

def initialize(klass, methods)
  required_methods = Array(methods).join(", ")
  super("#{klass} must respond to [#{required_methods}] class methods!")
end