Method: Verizon::OauthProviderException#initialize

Defined in:
lib/verizon/exceptions/oauth_provider_exception.rb

#initialize(reason, response) ⇒ OauthProviderException

The constructor.

Parameters:

  • The (String)

    reason for raising an exception.

  • The (HttpResponse)

    HttpReponse of the API call.



32
33
34
35
36
# File 'lib/verizon/exceptions/oauth_provider_exception.rb', line 32

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