Method: AdvancedBilling::ProformaBadRequestErrorResponseException#initialize

Defined in:
lib/advanced_billing/exceptions/proforma_bad_request_error_response_exception.rb

#initialize(reason, response) ⇒ ProformaBadRequestErrorResponseException

The constructor.

Parameters:

  • The (String)

    reason for raising an exception.

  • The (HttpResponse)

    HttpReponse of the API call.



19
20
21
22
23
# File 'lib/advanced_billing/exceptions/proforma_bad_request_error_response_exception.rb', line 19

def initialize(reason, response)
  super(reason, response)
  hash = APIHelper.json_deserialize(@response.raw_body)
  unbox(hash)
end