Exception: KubeMQ::ClientClosedError

Inherits:
Error
  • Object
show all
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.

See Also:

Instance Attribute Summary

Attributes inherited from Error

#channel, #code, #details, #operation, #request_id, #suggestion

Instance Method Summary collapse

Methods inherited from Error

#cause, #retryable?, #to_s

Constructor Details

#initialize(message = 'Client is closed', **kwargs) ⇒ ClientClosedError



194
195
196
197
198
# File 'lib/kubemq/errors.rb', line 194

def initialize(message = 'Client is closed', **kwargs)
  kwargs[:code] ||= ErrorCode::CLIENT_CLOSED
  kwargs[:retryable] = false unless kwargs.key?(:retryable)
  super
end