Exception: Risenexa::Tracking::ValidationError

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

Instance Method Summary collapse

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.

Returns:

  • (Array<String>) —

    validation error messages from the response body



20
21
22
# File 'lib/risenexa/tracking/errors.rb', line 20

def errors
  @errors
end