Exception: KubeMQ::AuthenticationError
- Inherits:
-
ConnectionError
- Object
- StandardError
- Error
- ConnectionError
- KubeMQ::AuthenticationError
- Defined in:
- lib/kubemq/errors.rb
Overview
Raised when authentication or authorization fails.
Covers invalid, expired, or missing auth tokens (+AUTH_FAILED+) and insufficient permissions (+PERMISSION_DENIED+). Not retryable — fix credentials before retrying.
Instance Attribute Summary
Attributes inherited from Error
#channel, #code, #details, #operation, #request_id, #suggestion
Instance Method Summary collapse
-
#initialize(message, **kwargs) ⇒ AuthenticationError
constructor
A new instance of AuthenticationError.
Methods inherited from Error
Constructor Details
#initialize(message, **kwargs) ⇒ AuthenticationError
Returns a new instance of AuthenticationError.
119 120 121 122 |
# File 'lib/kubemq/errors.rb', line 119 def initialize(, **kwargs) kwargs[:retryable] = false unless kwargs.key?(:retryable) super end |