Method: Whois::WebInterfaceError#initialize

Defined in:
lib/whois/errors.rb

#initialize(url) ⇒ WebInterfaceError

Initializes a new exception with given URL.

Parameters:

  • url (String)

    The URL of the web-based WHOIS interface.



81
82
83
84
# File 'lib/whois/errors.rb', line 81

def initialize(url)
  @url = url
  super("This TLD has no WHOIS server, but you can access the WHOIS database at `#{@url}'")
end