Exception: Fog::DNS::Rackspace::CallbackError

Inherits:
Errors::Error
  • Object
show all
Defined in:
lib/fog/rackspace/dns.rb

Instance Attribute Summary collapse

Attributes inherited from Errors::Error

#verbose

Instance Method Summary collapse

Methods inherited from Errors::Error

slurp

Constructor Details

#initialize(response) ⇒ CallbackError

Returns a new instance of CallbackError.



17
18
19
20
21
# File 'lib/fog/rackspace/dns.rb', line 17

def initialize(response)
  @response = response
  @message = response.body['error']['message']
  @details = response.body['error']['details']
end

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details.



16
17
18
# File 'lib/fog/rackspace/dns.rb', line 16

def details
  @details
end

#messageObject (readonly)

Returns the value of attribute message.



16
17
18
# File 'lib/fog/rackspace/dns.rb', line 16

def message
  @message
end

#responseObject (readonly)

Returns the value of attribute response.



16
17
18
# File 'lib/fog/rackspace/dns.rb', line 16

def response
  @response
end