|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
The WebSocket upgrade was rejected (e.g. HTTP 403 / 429) or failed. More...
#include <errors.hpp>
Public Member Functions | |
| WebsocketHandshakeError (const std::string &msg, std::uint16_t status=0, std::optional< std::chrono::seconds > retry_after={}) | |
| std::uint16_t | status () const noexcept |
| The HTTP status of a rejected upgrade, or 0. | |
| std::optional< std::chrono::seconds > | retry_after () const noexcept |
| The Retry-After header of a rejected upgrade (418 / 429), if any. | |
| Public Member Functions inherited from binance::common::WebsocketError | |
| WebsocketError (const std::string &what, bool request_sent=false) | |
| WebsocketError (const std::string &what, std::string msg, std::optional< std::int64_t > code, bool request_sent) | |
| bool | request_sent () const noexcept |
| True when the request was handed to the connection, so Binance may have executed it and the outcome is unknown. | |
| Public Member Functions inherited from binance::common::Error | |
| Error (const std::string &what, std::string msg, std::optional< std::int64_t > code=std::nullopt) | |
| const std::string & | msg () const noexcept |
| std::optional< std::int64_t > | code () const noexcept |
The WebSocket upgrade was rejected (e.g. HTTP 403 / 429) or failed.
|
explicit |
|
inlinenodiscardnoexcept |
The HTTP status of a rejected upgrade, or 0.
|
inlinenodiscardnoexcept |
The Retry-After header of a rejected upgrade (418 / 429), if any.
Reconnects wait at least this long.