Exception: Descope::HTTPError

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

Instance Method Details

#headersObject



16
17
18
# File 'lib/descope/exception.rb', line 16

def headers
  error_data[:headers]
end

#http_codeObject



20
21
22
# File 'lib/descope/exception.rb', line 20

def http_code
  error_data[:code]
end