Exception: Spidra::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Spidra::Error
- Defined in:
- lib/spidra/errors.rb
Overview
Base class for all errors raised by the Spidra SDK.
Direct Known Subclasses
AuthenticationError, InsufficientCreditsError, RateLimitError, ServerError
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message = nil, status: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, status: nil) ⇒ Error
Returns a new instance of Error.
6 7 8 9 |
# File 'lib/spidra/errors.rb', line 6 def initialize( = nil, status: nil) super() @status = status end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/spidra/errors.rb', line 4 def status @status end |