Exception: Prescient::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Prescient::Error
- Defined in:
- lib/prescient/errors.rb
Overview
Base error class for all Prescient-specific errors
Direct Known Subclasses
AuthenticationError, ConnectionError, InvalidResponseError, InvalidVectorError, ModelNotAvailableError, ProviderError, RateLimitError
Instance Attribute Summary collapse
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message = nil, provider: nil, operation: nil, status: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, provider: nil, operation: nil, status: nil) ⇒ Error
Returns a new instance of Error.
10 11 12 13 14 15 16 |
# File 'lib/prescient/errors.rb', line 10 def initialize( = nil, provider: nil, operation: nil, status: nil) super() @provider = provider @operation = operation @status = status end |
Instance Attribute Details
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
7 8 9 |
# File 'lib/prescient/errors.rb', line 7 def operation @operation end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
6 7 8 |
# File 'lib/prescient/errors.rb', line 6 def provider @provider end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
8 9 10 |
# File 'lib/prescient/errors.rb', line 8 def status @status end |