Exception: Hyperliquid::ServerError

Inherits:
Error
  • Object
show all
Defined in:
lib/hyperliquid/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, status: nil, body: nil) ⇒ ServerError

Returns a new instance of ServerError.



19
20
21
22
23
# File 'lib/hyperliquid/error.rb', line 19

def initialize(message = nil, status: nil, body: nil)
  @status = status
  @body = body
  super(message)
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



17
18
19
# File 'lib/hyperliquid/error.rb', line 17

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



17
18
19
# File 'lib/hyperliquid/error.rb', line 17

def status
  @status
end