Exception: Risenexa::Tracking::ValidationError
- Defined in:
- lib/risenexa/tracking/errors.rb
Overview
Raised when the request payload is invalid (HTTP 422). Non-retryable — same payload will always fail.
Instance Attribute Summary collapse
-
#errors ⇒ Array<String>
readonly
Validation error messages from the response body.
Instance Method Summary collapse
-
#initialize(errors: []) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(errors: []) ⇒ ValidationError
Returns a new instance of ValidationError.
22 23 24 25 |
# File 'lib/risenexa/tracking/errors.rb', line 22 def initialize(errors: []) @errors = errors super(errors.first || "Validation failed") end |
Instance Attribute Details
#errors ⇒ Array<String> (readonly)
Returns validation error messages from the response body.
20 21 22 |
# File 'lib/risenexa/tracking/errors.rb', line 20 def errors @errors end |