Sha256: ca5940f3252de0a108e068702a8462af5f9ce8299a4f40de45da46ec8266ef44
Contents?: true
Size: 1.6 KB
Versions: 4
Compression:
Stored size: 1.6 KB
Contents
# # = Ruby Whois # # An intelligent pure Ruby WHOIS client. # # # Category:: Net # Package:: Whois # Author:: Simone Carletti <weppos@weppos.net> # License:: MIT License # #-- # #++ module Whois # The base error class for all Whois error classes. class Error < StandardError end # Generic Server exception class. class ServerError < Error end # Definition not found # Raised when the class hasn't been able to select a valid server # probably because definitions are outdated. class ServerNotFound < ServerError end # Definition found class InterfaceNotSupported < ServerError end # Raised when a server is known to not be available for this kind of object # or because this specific object doesn't support whois. (\x03) class NoInterfaceError < InterfaceNotSupported end # 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) class WebInterfaceError < InterfaceNotSupported end # Known object, Definition unavailable # Raised when we know about a specific functionality # but this functionality has not been implemented yet. # This is usually the result of a porting from a third-party library. class ServerNotImplemented < ServerError end # Raised when no whois server is known for this kind of object. (\x05) class ServerNotSupported < ServerError end # Raised when unknown AS numer of IP network. (\x06) class AllocationUnknown < ServerError end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
whois-0.5.3 | lib/whois/errors.rb |
whois-0.5.2 | lib/whois/errors.rb |
whois-0.5.0 | lib/whois/errors.rb |
whois-0.5.1 | lib/whois/errors.rb |