Exception: Whois::WebInterfaceError
- Inherits:
-
InterfaceNotSupported
- Object
- StandardError
- Error
- ServerError
- InterfaceNotSupported
- Whois::WebInterfaceError
- 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
-
#url ⇒ String
readonly
The URL of the web-based WHOIS interface.
Interface collapse
-
#initialize(url) ⇒ WebInterfaceError
constructor
Initializes a new exception with given URL.
Constructor Details
#initialize(url) ⇒ WebInterfaceError
Initializes a new exception with given URL.
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
#url ⇒ String (readonly)
Returns The URL of the web-based WHOIS interface.
78 79 80 |
# File 'lib/whois/errors.rb', line 78 def url @url end |