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.



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

Instance Attribute Details

#urlString (readonly)



76
77
78
# File 'lib/whois/errors.rb', line 76

def url
  @url
end