Exception: Hyperliquid::ClientError
- Defined in:
- lib/hyperliquid/error.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message = nil, status: nil, body: nil) ⇒ ClientError
constructor
A new instance of ClientError.
Constructor Details
#initialize(message = nil, status: nil, body: nil) ⇒ ClientError
Returns a new instance of ClientError.
9 10 11 12 13 |
# File 'lib/hyperliquid/error.rb', line 9 def initialize( = nil, status: nil, body: nil) @status = status @body = body super() end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
7 8 9 |
# File 'lib/hyperliquid/error.rb', line 7 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
7 8 9 |
# File 'lib/hyperliquid/error.rb', line 7 def status @status end |