9 #ifndef BOTAN_ASIO_ERROR_H_
10 #define BOTAN_ASIO_ERROR_H_
12 #include <botan/build.h>
14 #include <boost/version.hpp>
15 #if BOOST_VERSION >= 106600
17 #include <boost/system/system_error.hpp>
19 #include <botan/exceptn.h>
20 #include <botan/tls_alert.h>
21 #include <botan/tls_exceptn.h>
29 const char*
name() const noexcept
override
31 return "asio.botan.tls.alert";
34 std::string
message(
int ev)
const override
57 const char*
name() const noexcept
override
59 return "asio.botan.tls";
62 std::string
message(
int ev)
const override
84 template<>
struct is_error_code_enum<
Botan::TLS::Alert::Type>
86 static const bool value =
true;
91 static const bool value =
true;
97 #endif // BOOST_VERSION
98 #endif // BOTAN_ASIO_ERROR_H_
const char * name() const noexceptoverride
const BotanErrorCategory & botan_category() noexcept
boost::system::error_code make_error_code(Botan::TLS::Alert::Type c)
An error category for TLS alerts.
boost::system::error_code make_error_code(Botan::ErrorType e)
const BotanAlertCategory & botan_alert_category() noexcept
std::string message(int ev) const override
std::string to_string(ErrorType type)
Convert an ErrorType to string.
std::string message(int ev) const override
const char * name() const noexceptoverride
An error category for errors from Botan (other than TLS alerts)
std::string type_string() const