Exception: MonoVM::Whois::ServerRefusedError

Inherits:
Error
  • Object
show all
Defined in:
lib/monovm/whois/errors.rb

Overview

The server answered, but refused to give a verdict: rate limiting, a blocked client, a retired port 43 endpoint, or an HTTP status that is not an answer (401/403/405/406/429/5xx).

This is deliberately distinct from "the domain is registered". Conflating the two is how a permissive detector ends up reporting registered domains as free.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, endpoint: nil) ⇒ ServerRefusedError

Returns a new instance of ServerRefusedError.



52
53
54
55
# File 'lib/monovm/whois/errors.rb', line 52

def initialize(message, endpoint: nil)
  @endpoint = endpoint
  super(message)
end

Instance Attribute Details

#endpointObject (readonly)

Returns the value of attribute endpoint.



50
51
52
# File 'lib/monovm/whois/errors.rb', line 50

def endpoint
  @endpoint
end