Exception: KubeMQ::ClientClosedError
- Defined in:
- lib/kubemq/errors.rb
Overview
Raised when an operation is attempted on a closed client.
Not retryable — create a new client instance to continue operations.
Instance Attribute Summary
Attributes inherited from Error
#channel, #code, #details, #operation, #request_id, #suggestion
Instance Method Summary collapse
-
#initialize(message = 'Client is closed', **kwargs) ⇒ ClientClosedError
constructor
A new instance of ClientClosedError.
Methods inherited from Error
Constructor Details
#initialize(message = 'Client is closed', **kwargs) ⇒ ClientClosedError
194 195 196 197 198 |
# File 'lib/kubemq/errors.rb', line 194 def initialize( = 'Client is closed', **kwargs) kwargs[:code] ||= ErrorCode::CLIENT_CLOSED kwargs[:retryable] = false unless kwargs.key?(:retryable) super end |