Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

70 lines (51 sloc) 1.635 kb
#
# = 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
Jump to Line
Something went wrong with that request. Please try again.