Exception: SimpleAuthSdk::HTTPError

Inherits:
Exception
  • Object
show all
Defined in:
lib/simple_auth_sdk/exception.rb

Overview

Parent for all exceptions that arise out of HTTP error responses.

Instance Attribute Summary

Attributes inherited from Exception

#error_data

Instance Method Summary collapse

Methods inherited from Exception

#initialize

Constructor Details

This class inherits a constructor from SimpleAuthSdk::Exception

Instance Method Details

#headersObject



18
19
20
# File 'lib/simple_auth_sdk/exception.rb', line 18

def headers
  error_data[:headers]
end

#http_codeObject



22
23
24
# File 'lib/simple_auth_sdk/exception.rb', line 22

def http_code
  error_data[:code]
end