Exception: Radioactive::ResponseError

Inherits:
Error
  • Object
show all
Defined in:
lib/radioactive/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message = nil, status: nil, headers: nil, body: nil)
  super(message)
  @status = status
  @headers = headers
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



19
20
21
# File 'lib/radioactive/errors.rb', line 19

def body
  @body
end

#headersObject (readonly)

Returns the value of attribute headers.



19
20
21
# File 'lib/radioactive/errors.rb', line 19

def headers
  @headers
end

#statusObject (readonly)

Returns the value of attribute status.



19
20
21
# File 'lib/radioactive/errors.rb', line 19

def status
  @status
end