Exception: PyrxSynapse::SynapseValidationError
- Inherits:
-
SynapseError
- Object
- StandardError
- SynapseError
- PyrxSynapse::SynapseValidationError
- Defined in:
- lib/pyrx_synapse/errors.rb
Overview
Raised on 422 Unprocessable Entity (validation failures).
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Attributes inherited from SynapseError
Instance Method Summary collapse
-
#initialize(message, status:, code: nil, request_id: nil, errors: []) ⇒ SynapseValidationError
constructor
A new instance of SynapseValidationError.
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(, status:, code: nil, request_id: nil, errors: []) super(, status: status, code: code, request_id: request_id) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
45 46 47 |
# File 'lib/pyrx_synapse/errors.rb', line 45 def errors @errors end |