Exception: Atomsphere::Api::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Atomsphere::Api::ApiError
- Defined in:
- lib/atomsphere/api/client.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#original ⇒ Object
readonly
Returns the value of attribute original.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(request, response, original = nil, message = nil) ⇒ ApiError
constructor
A new instance of ApiError.
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, =nil) @request = request @response = response @original = original @message = super() end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
124 125 126 |
# File 'lib/atomsphere/api/client.rb', line 124 def @message end |
#original ⇒ Object (readonly)
Returns the value of attribute original.
124 125 126 |
# File 'lib/atomsphere/api/client.rb', line 124 def original @original end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
124 125 126 |
# File 'lib/atomsphere/api/client.rb', line 124 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
124 125 126 |
# File 'lib/atomsphere/api/client.rb', line 124 def response @response end |