Exception: KubeMQ::CancellationError
- Defined in:
- lib/kubemq/errors.rb
Overview
Raised when an operation is cooperatively cancelled via CancellationToken.
Not retryable — cancellation is intentional.
Instance Attribute Summary
Attributes inherited from Error
#channel, #code, #details, #operation, #request_id, #suggestion
Instance Method Summary collapse
-
#initialize(message = 'Operation cancelled', **kwargs) ⇒ CancellationError
constructor
A new instance of CancellationError.
Methods inherited from Error
Constructor Details
#initialize(message = 'Operation cancelled', **kwargs) ⇒ CancellationError
Returns a new instance of CancellationError.
270 271 272 273 274 |
# File 'lib/kubemq/errors.rb', line 270 def initialize( = 'Operation cancelled', **kwargs) kwargs[:code] = ErrorCode::CANCELLED kwargs[:retryable] = false unless kwargs.key?(:retryable) super end |