Exception: Auth0::HTTPError

Inherits:
Exception
  • Object
show all
Defined in:
lib/auth0/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 Auth0::Exception

Instance Method Details

#headersObject



14
15
16
# File 'lib/auth0/exception.rb', line 14

def headers
  error_data[:headers]
end

#http_codeObject



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

def http_code
  error_data[:code]
end