Exception: MonoVM::Whois::InvalidDomainError

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

Overview

The input is not a usable domain name.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain, message = nil) ⇒ InvalidDomainError

Returns a new instance of InvalidDomainError.



17
18
19
20
# File 'lib/monovm/whois/errors.rb', line 17

def initialize(domain, message = nil)
  @domain = domain
  super(message || "not a usable domain name: #{domain.inspect}")
end

Instance Attribute Details

#domainObject (readonly)

Returns the value of attribute domain.



15
16
17
# File 'lib/monovm/whois/errors.rb', line 15

def domain
  @domain
end