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.



11
12
13
14
15
# File 'lib/fog/rackspace/dns.rb', line 11

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.



10
11
12
# File 'lib/fog/rackspace/dns.rb', line 10

def details
  @details
end

#messageObject (readonly)

Returns the value of attribute message.



10
11
12
# File 'lib/fog/rackspace/dns.rb', line 10

def message
  @message
end

#responseObject (readonly)

Returns the value of attribute response.



10
11
12
# File 'lib/fog/rackspace/dns.rb', line 10

def response
  @response
end