Exception: Basecamp::ApiClient::ApiError

Inherits:
StandardError
  • Object
show all
Defined in:
app/services/basecamp/api_client.rb

Direct Known Subclasses

NotFoundError, RateLimitError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ApiError.



23
24
25
26
27
# File 'app/services/basecamp/api_client.rb', line 23

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

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



21
22
23
# File 'app/services/basecamp/api_client.rb', line 21

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



21
22
23
# File 'app/services/basecamp/api_client.rb', line 21

def status
  @status
end