Exception: IntuitOAuth::OAuth2ClientException
- Inherits:
-
StandardError
- Object
- StandardError
- IntuitOAuth::OAuth2ClientException
- Defined in:
- lib/intuit-oauth/exception.rb
Instance Method Summary collapse
-
#initialize(response) ⇒ OAuth2ClientException
constructor
A new instance of OAuth2ClientException.
Constructor Details
#initialize(response) ⇒ OAuth2ClientException
Returns a new instance of OAuth2ClientException.
3 4 5 6 7 8 9 10 |
# File 'lib/intuit-oauth/exception.rb', line 3 def initialize(response) @satus_code = response.code @body = response.body @headers = response.headers @intuit_tid = response.headers['intuit_tid'] @timestamp = response.headers['date'] super("HTTP status #{@satus_code}, error message: #{@body}, intuit_tid: #{@intuit_tid} on #{@timestamp}") end |