Exception: KubeMQ::ValidationError

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

Overview

Raised when request parameters fail validation.

Covers invalid channel names, empty messages, out-of-range values, and duplicate resources. Not retryable — fix the input before retrying.

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) ⇒ ValidationError

Returns a new instance of ValidationError.



144
145
146
147
# File 'lib/kubemq/errors.rb', line 144

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