Exception: ElasticBeans::DnsEntry::InvalidDnsName

Inherits:
Error
  • Object
show all
Defined in:
lib/elastic_beans/dns_entry.rb

Instance Method Summary collapse

Constructor Details

#initialize(name:) ⇒ InvalidDnsName

Returns a new instance of InvalidDnsName.



83
84
85
# File 'lib/elastic_beans/dns_entry.rb', line 83

def initialize(name:)
  @name = name
end

Instance Method Details

#messageObject



87
88
89
# File 'lib/elastic_beans/dns_entry.rb', line 87

def message
  "Invalid DNS name `#{@name}'. Only subdomains are accepted, e.g. 'myapp.example.com'"
end