Exception: Hyperliquid::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Hyperliquid::Error
- Defined in:
- lib/hyperliquid/errors.rb
Overview
Base error class for all Hyperliquid SDK errors
Direct Known Subclasses
ClientError, NetworkError, ServerError, TimeoutError, WebSocketError
Instance Attribute Summary collapse
-
#response_body ⇒ Object
readonly
Returns the value of attribute response_body.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message, status_code: nil, response_body: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, status_code: nil, response_body: nil) ⇒ Error
Returns a new instance of Error.
8 9 10 11 12 |
# File 'lib/hyperliquid/errors.rb', line 8 def initialize(, status_code: nil, response_body: nil) super() @status_code = status_code @response_body = response_body end |
Instance Attribute Details
#response_body ⇒ Object (readonly)
Returns the value of attribute response_body.
6 7 8 |
# File 'lib/hyperliquid/errors.rb', line 6 def response_body @response_body end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
6 7 8 |
# File 'lib/hyperliquid/errors.rb', line 6 def status_code @status_code end |