Exception: RunApi::Core::AuthenticationError
- Defined in:
- lib/runapi/core/errors.rb
Overview
Raised when API key is missing or invalid (HTTP 401).
Constant Summary
Constants inherited from Error
Error::DEFAULT_MESSAGES, Error::STATUS_MAP
Instance Attribute Summary
Attributes inherited from Error
#details, #request_id, #response_headers, #status
Instance Method Summary collapse
-
#initialize(message = "Unauthorized", **kwargs) ⇒ AuthenticationError
constructor
A new instance of AuthenticationError.
Methods inherited from Error
from_response, #response_header, #runapi_task_id, #to_h
Constructor Details
#initialize(message = "Unauthorized", **kwargs) ⇒ AuthenticationError
Returns a new instance of AuthenticationError.
176 177 178 |
# File 'lib/runapi/core/errors.rb', line 176 def initialize( = "Unauthorized", **kwargs) super(, status: 401, **kwargs) end |