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

Inherits:
Errors::Error
  • Object
show all
Defined in:
lib/rackspace-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.



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

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.



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

def details
  @details
end

#messageObject (readonly)

Returns the value of attribute message.



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

def message
  @message
end

#responseObject (readonly)

Returns the value of attribute response.



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

def response
  @response
end