Exception: Bybit::ParseError
- Inherits:
-
TransportError
- Object
- StandardError
- Error
- TransportError
- Bybit::ParseError
- Defined in:
- lib/bybit/error.rb
Overview
Body did not parse or didn't match Bybit V5 ApiResponse shape. body
holds the raw payload (truncated in the message but full in the attr)
so consumers can log CDN / maintenance-page HTML for post-mortem.
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#http_status ⇒ Object
readonly
Returns the value of attribute http_status.
Instance Method Summary collapse
-
#initialize(message, body: nil, http_status: nil) ⇒ ParseError
constructor
A new instance of ParseError.
Constructor Details
#initialize(message, body: nil, http_status: nil) ⇒ ParseError
Returns a new instance of ParseError.
49 50 51 52 53 |
# File 'lib/bybit/error.rb', line 49 def initialize(, body: nil, http_status: nil) @body = body @http_status = http_status super() end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
47 48 49 |
# File 'lib/bybit/error.rb', line 47 def body @body end |
#http_status ⇒ Object (readonly)
Returns the value of attribute http_status.
47 48 49 |
# File 'lib/bybit/error.rb', line 47 def http_status @http_status end |