Exception: DilisensePepClient::AuthenticationError
Overview
Raised specifically for authentication failures (401 status) Usually means the API key is invalid or has been revoked
Instance Attribute Summary
Attributes inherited from APIError
Attributes inherited from Error
#context, #error_code, #request_id, #timestamp
Instance Method Summary collapse
-
#initialize(message, **options) ⇒ AuthenticationError
constructor
A new instance of AuthenticationError.
- #retryable? ⇒ Boolean
- #security_event? ⇒ Boolean
Methods inherited from APIError
#client_error?, #server_error?
Methods inherited from Error
Constructor Details
#initialize(message, **options) ⇒ AuthenticationError
Returns a new instance of AuthenticationError.
218 219 220 |
# File 'lib/dilisense_pep_client/errors.rb', line 218 def initialize(, **) super(, error_code: "AUTH_ERROR", **) end |
Instance Method Details
#retryable? ⇒ Boolean
226 227 228 |
# File 'lib/dilisense_pep_client/errors.rb', line 226 def retryable? false # Auth errors should not be retried automatically end |
#security_event? ⇒ Boolean
222 223 224 |
# File 'lib/dilisense_pep_client/errors.rb', line 222 def security_event? true end |