Exception: DnsMadeEasy::ResourceNotFoundError
- Inherits:
-
RequestFailedError
- Object
- StandardError
- RequestFailedError
- DnsMadeEasy::ResourceNotFoundError
- Defined in:
- lib/dnsmadeeasy/exceptions.rb
Overview
Error raised when actions are performed against an unknown resource (domain or record)
Instance Method Summary collapse
-
#initialize(resource) ⇒ ResourceNotFoundError
constructor
A new instance of ResourceNotFoundError.
Constructor Details
#initialize(resource) ⇒ ResourceNotFoundError
Returns a new instance of ResourceNotFoundError.
20 21 22 23 |
# File 'lib/dnsmadeeasy/exceptions.rb', line 20 def initialize(resource) flattened_resource = resource.to_a.map { |x| "#{x[0]}: #{x[1]}" }.join(", ") super "Could not find resource - #{flattened_resource}" end |