Exception: ClientBaseError
- Inherits:
-
StandardError
- Object
- StandardError
- ClientBaseError
- Defined in:
- lib/hubspot_client/client_base_error.rb
Direct Known Subclasses
HubspotClient::Client::AssociationError, HubspotClient::Client::CompanyNotCreated, HubspotClient::Client::CompanyNotFound, HubspotClient::Client::CompanyNotUpdated, HubspotClient::Client::ContactNotCreated, HubspotClient::Client::ContactNotFound, HubspotClient::Client::ContactNotUpdated, HubspotClient::Client::FetchDefinitionsNotSuccessful, HubspotClient::Client::SubscriptionNotSuccessful
Instance Method Summary collapse
-
#initialize(response) ⇒ ClientBaseError
constructor
A new instance of ClientBaseError.
Constructor Details
#initialize(response) ⇒ ClientBaseError
Returns a new instance of ClientBaseError.
4 5 6 7 |
# File 'lib/hubspot_client/client_base_error.rb', line 4 def initialize(response) = { status: response.code, body: JSON.parse(response.body) } super() end |