Exception: RunApi::Core::AuthenticationError

Inherits:
Error
  • Object
show all
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, #status

Instance Method Summary collapse

Methods inherited from Error

from_response, #to_h

Constructor Details

#initialize(message = "Unauthorized", **kwargs) ⇒ AuthenticationError

Returns a new instance of AuthenticationError.



160
161
162
# File 'lib/runapi/core/errors.rb', line 160

def initialize(message = "Unauthorized", **kwargs)
  super(message, status: 401, **kwargs)
end