Exception: Atomsphere::Api::ApiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/atomsphere/api/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(request, response, original = nil, message = nil) ⇒ ApiError

Returns a new instance of ApiError.



126
127
128
129
130
131
132
133
# File 'lib/atomsphere/api/client.rb', line 126

def initialize(request, response, original=nil, message=nil)
  @request  = request
  @response = response
  @original = original
  @message  = message

  super(message)
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



124
125
126
# File 'lib/atomsphere/api/client.rb', line 124

def message
  @message
end

#originalObject (readonly)

Returns the value of attribute original.



124
125
126
# File 'lib/atomsphere/api/client.rb', line 124

def original
  @original
end

#requestObject (readonly)

Returns the value of attribute request.



124
125
126
# File 'lib/atomsphere/api/client.rb', line 124

def request
  @request
end

#responseObject (readonly)

Returns the value of attribute response.



124
125
126
# File 'lib/atomsphere/api/client.rb', line 124

def response
  @response
end