Exception: PyrxSynapse::SynapseError
- Inherits:
-
StandardError
- Object
- StandardError
- PyrxSynapse::SynapseError
- Defined in:
- lib/pyrx_synapse/errors.rb
Overview
Base error for all Synapse API errors.
Direct Known Subclasses
SynapseAuthError, SynapsePlanLimitError, SynapseRateLimitError, SynapseValidationError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status:, code: nil, request_id: nil) ⇒ SynapseError
constructor
A new instance of SynapseError.
Constructor Details
#initialize(message, status:, code: nil, request_id: nil) ⇒ SynapseError
Returns a new instance of SynapseError.
8 9 10 11 12 13 |
# File 'lib/pyrx_synapse/errors.rb', line 8 def initialize(, status:, code: nil, request_id: nil) super() @status = status @code = code @request_id = request_id end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
6 7 8 |
# File 'lib/pyrx_synapse/errors.rb', line 6 def code @code end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id.
6 7 8 |
# File 'lib/pyrx_synapse/errors.rb', line 6 def request_id @request_id end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
6 7 8 |
# File 'lib/pyrx_synapse/errors.rb', line 6 def status @status end |