Exception: MonoVM::Whois::UnsupportedTldError
- Defined in:
- lib/monovm/whois/errors.rb
Overview
No WHOIS or RDAP endpoint is known for this TLD.
Instance Attribute Summary collapse
-
#tld ⇒ Object
readonly
Returns the value of attribute tld.
Instance Method Summary collapse
-
#initialize(tld, message = nil) ⇒ UnsupportedTldError
constructor
A new instance of UnsupportedTldError.
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, = nil) @tld = tld super( || "no whois server known for #{tld.nil? ? "a name without a TLD" : tld}") end |
Instance Attribute Details
#tld ⇒ Object (readonly)
Returns the value of attribute tld.
25 26 27 |
# File 'lib/monovm/whois/errors.rb', line 25 def tld @tld end |