Exception: RogIQ::HttpApi::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rogiq/http_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status: nil, body: nil) ⇒ Error

Returns a new instance of Error.



12
13
14
15
16
# File 'lib/rogiq/http_api.rb', line 12

def initialize(message, status: nil, body: nil)
  super(message)
  @status = status
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



10
11
12
# File 'lib/rogiq/http_api.rb', line 10

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



10
11
12
# File 'lib/rogiq/http_api.rb', line 10

def status
  @status
end