Exception: PyrxSynapse::SynapseValidationError

Inherits:
SynapseError
  • Object
show all
Defined in:
lib/pyrx_synapse/errors.rb

Overview

Raised on 422 Unprocessable Entity (validation failures).

Instance Attribute Summary collapse

Attributes inherited from SynapseError

#code, #request_id, #status

Instance Method Summary collapse

Constructor Details

#initialize(message, status:, code: nil, request_id: nil, errors: []) ⇒ SynapseValidationError

Returns a new instance of SynapseValidationError.



47
48
49
50
# File 'lib/pyrx_synapse/errors.rb', line 47

def initialize(message, status:, code: nil, request_id: nil, errors: [])
  super(message, status: status, code: code, request_id: request_id)
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



45
46
47
# File 'lib/pyrx_synapse/errors.rb', line 45

def errors
  @errors
end