Exception: KubeMQ::ValidationError
- 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
-
#initialize(message, **kwargs) ⇒ ValidationError
constructor
A new instance of ValidationError.
Methods inherited from Error
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(, **kwargs) kwargs[:retryable] = false unless kwargs.key?(:retryable) super end |