class ProxyFetcher::Exceptions::WrongCustomClass

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

Public Class Methods

new(klass, methods) click to toggle source

Initialize new exception

@return [WrongCustomClass]

Calls superclass method
# 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