Exception: HookSniff::AuthenticationError
- Defined in:
- lib/hooksniff/errors.rb
Overview
Authentication error — token invalid, expired, or missing
Instance Attribute Summary
Attributes inherited from ApiError
#code, #response_body, #response_headers
Instance Method Summary collapse
-
#initialize(response_headers: {}, response_body: nil) ⇒ AuthenticationError
constructor
A new instance of AuthenticationError.
Methods inherited from ApiError
Constructor Details
#initialize(response_headers: {}, response_body: nil) ⇒ AuthenticationError
Returns a new instance of AuthenticationError.
161 162 163 |
# File 'lib/hooksniff/errors.rb', line 161 def initialize(response_headers: {}, response_body: nil) super(code: 401, response_headers: response_headers, response_body: response_body) end |