Exception: Hookdeck::ServerError
- Defined in:
- lib/hookdeck/errors.rb
Instance Attribute Summary
Attributes inherited from ApiError
#data, #handled, #message, #request_id, #response, #status
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(response) ⇒ ServerError
constructor
A new instance of ServerError.
Constructor Details
#initialize(response) ⇒ ServerError
Returns a new instance of ServerError.
105 106 107 108 |
# File 'lib/hookdeck/errors.rb', line 105 def initialize(response) super @status = response&.dig(:status) || 500 end |