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

The attempt took longer than timeout. More...

#include <errors.hpp>

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

Public Member Functions

 RequestTimeoutError (const std::string &msg, bool request_sent=false, boost::system::error_code transport_error={})
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 attempt took longer than timeout.

request_sent() has the same meaning as for NetworkError.

Constructor & Destructor Documentation

◆ RequestTimeoutError()

binance::common::RequestTimeoutError::RequestTimeoutError ( const std::string & msg,
bool request_sent = false,
boost::system::error_code transport_error = {} )
explicit