Exception: CampaignHQ::API::Error
- Inherits:
-
StandardError
- Object
- StandardError
- CampaignHQ::API::Error
- 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
Defined Under Namespace
Classes: InvalidParameters, NotFound, Unauthorized
Instance Method Summary collapse
-
#initialize(response) ⇒ Error
constructor
A new instance of Error.
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 |