Exception: KubeMQ::ConfigurationError

Inherits:
Error
  • Object
show all
Defined in:
lib/kubemq/errors.rb

Overview

Raised when the client configuration is invalid.

Covers missing or malformed address, invalid TLS paths, and conflicting options. Not retryable — fix the configuration before creating a new client.

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, **kwargs) ⇒ ConfigurationError

Returns a new instance of ConfigurationError.



157
158
159
160
161
# File 'lib/kubemq/errors.rb', line 157

def initialize(message, **kwargs)
  kwargs[:code] ||= ErrorCode::CONFIGURATION_ERROR
  kwargs[:retryable] = false unless kwargs.key?(:retryable)
  super
end