Exception: MonoVM::Whois::UnsupportedTldError

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

Overview

No WHOIS or RDAP endpoint is known for this TLD.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tld, message = nil) ⇒ UnsupportedTldError

Returns a new instance of UnsupportedTldError.



27
28
29
30
# File 'lib/monovm/whois/errors.rb', line 27

def initialize(tld, message = nil)
  @tld = tld
  super(message || "no whois server known for #{tld.nil? ? "a name without a TLD" : tld}")
end

Instance Attribute Details

#tldObject (readonly)

Returns the value of attribute tld.



25
26
27
# File 'lib/monovm/whois/errors.rb', line 25

def tld
  @tld
end