Exception: CampaignHQ::API::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/campaign_h_q/api/error.rb,
lib/campaign_h_q/api/error/not_found.rb,
lib/campaign_h_q/api/error/unauthorized.rb,
lib/campaign_h_q/api/error/invalid_parameters.rb

Direct Known Subclasses

InvalidParameters, NotFound, Unauthorized

Defined Under Namespace

Classes: InvalidParameters, NotFound, Unauthorized

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Error

Returns a new instance of Error.



6
7
8
9
# File 'lib/campaign_h_q/api/error.rb', line 6

def initialize(response)
  @response = response
  super @response.body['message']
end