Exception: MonoVM::Whois::InvalidDomainError
- Defined in:
- lib/monovm/whois/errors.rb
Overview
The input is not a usable domain name.
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
Instance Method Summary collapse
-
#initialize(domain, message = nil) ⇒ InvalidDomainError
constructor
A new instance of InvalidDomainError.
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, = nil) @domain = domain super( || "not a usable domain name: #{domain.inspect}") end |
Instance Attribute Details
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
15 16 17 |
# File 'lib/monovm/whois/errors.rb', line 15 def domain @domain end |