10#include <userver/utils/traceful_exception.hpp>
12USERVER_NAMESPACE_BEGIN
21 explicit IoException(std::string_view message);
27 explicit IoInterrupted(std::string_view reason, size_t bytes_transferred);
33 size_t bytes_transferred_;
40 explicit IoTimeout(size_t bytes_transferred);
48 explicit IoCancelled(size_t bytes_transferred);
54 IoSystemError(
int err_value, std::string_view reason);
55 IoSystemError(std::error_code code, std::string_view reason);
58 const std::error_code&
Code()
const {
return code_; }
61 std::error_code code_;
68 ~TlsException() override;