Exception: ClientBaseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hubspot_client/client_base_error.rb

Instance Method Summary collapse

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)
  error_message = { status: response.code, body: JSON.parse(response.body) }
  super(error_message)
end