Exception: Radioactive::ResponseError
- Defined in:
- lib/radioactive/errors.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message = nil, status: nil, headers: nil, body: nil) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(message = nil, status: nil, headers: nil, body: nil) ⇒ ResponseError
Returns a new instance of ResponseError.
21 22 23 24 25 26 |
# File 'lib/radioactive/errors.rb', line 21 def initialize( = nil, status: nil, headers: nil, body: nil) super() @status = status @headers = headers @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
19 20 21 |
# File 'lib/radioactive/errors.rb', line 19 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
19 20 21 |
# File 'lib/radioactive/errors.rb', line 19 def headers @headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
19 20 21 |
# File 'lib/radioactive/errors.rb', line 19 def status @status end |