Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
Loading...
Searching...
No Matches
binance::common::RequestCancelledError Class Reference

The operation was cancelled through its cancellation slot (e.g. More...

#include <errors.hpp>

Inheritance diagram for binance::common::RequestCancelledError:
binance::common::NetworkError binance::common::ConnectorError binance::common::Error

Public Member Functions

 RequestCancelledError (bool request_sent=false)
Public Member Functions inherited from binance::common::NetworkError
 NetworkError (const std::string &msg, bool request_sent=false, boost::system::error_code transport_error={})
bool request_sent () const noexcept
 True when the full request was written on at least one attempt, so Binance may have executed it.
boost::system::error_code transport_error () const noexcept
 The transport-level cause (e.g.
Public Member Functions inherited from binance::common::ConnectorError
 ConnectorError (const std::string &what, std::string msg, std::optional< std::int64_t > code=std::nullopt)
const RawResponse * response () const noexcept
 The HTTP response that caused the error, when there was one: status, headers (e.g.
std::optional< std::chrono::seconds > retry_after () const noexcept
 The delay from the Retry-After header of a 418 / 429 response, if it has one.
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

Detailed Description

The operation was cancelled through its cancellation slot (e.g.

asio::cancel_after) or because the RestClient was destroyed. request_sent() has the same meaning as for NetworkError; transport_error() is boost::asio::error::operation_aborted.

Constructor & Destructor Documentation

◆ RequestCancelledError()

binance::common::RequestCancelledError::RequestCancelledError ( bool request_sent = false)
explicit