Exception: Whois::WebInterfaceError

Inherits:
InterfaceNotSupported show all
Defined in:
lib/whois/errors.rb

Overview

Raised when the class has found a server but it doesn’t support the standard WHOIS interface via port 43. This is the case of some specific domains that only provide a web-based WHOIS interface. (x01)

Interface collapse

Interface collapse

Constructor Details

#initialize(url) ⇒ WebInterfaceError

Initializes a new exception with given URL.

Parameters:

  • url (String)

    The URL of the web-based WHOIS interface.



83
84
85
86
# File 'lib/whois/errors.rb', line 83

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

Instance Attribute Details

#urlString (readonly)

Returns The URL of the web-based WHOIS interface.

Returns:

  • (String)

    The URL of the web-based WHOIS interface.



78
79
80
# File 'lib/whois/errors.rb', line 78

def url
  @url
end