join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
tls_error.hpp
Go to the documentation of this file.
1
25#ifndef JOIN_CRYPTO_TLS_ERROR_HPP
26#define JOIN_CRYPTO_TLS_ERROR_HPP
27
28// C++.
29#include <system_error>
30
31namespace join
32{
36 enum class TlsErrc
37 {
40 };
41
45 class TlsCategory : public std::error_category
46 {
47 public:
52 virtual const char* name () const noexcept;
53
59 virtual std::string message (int code) const;
60 };
61
66 const std::error_category& getTlsCategory ();
67
73 std::error_code make_error_code (TlsErrc code);
74
80 std::error_condition make_error_condition (TlsErrc code);
81}
82
83namespace std
84{
86 template <>
87 struct is_error_condition_enum<join::TlsErrc> : public true_type
88 {
89 };
90}
91
92#endif
TLS error category.
Definition tls_error.hpp:46
virtual std::string message(int code) const
translate digest error code to human readable error string.
Definition tls_error.cpp:44
virtual const char * name() const noexcept
get digest error category name.
Definition tls_error.cpp:35
Definition acceptor.hpp:32
TlsErrc
TLS error codes.
Definition tls_error.hpp:37
const std::error_category & getTlsCategory()
get error category.
Definition tls_error.cpp:61
std::error_code make_error_code(join::Errc code) noexcept
Create an std::error_code object.
Definition error.cpp:195
std::error_condition make_error_condition(join::Errc code) noexcept
Create an std::error_condition object.
Definition error.cpp:204
Definition error.hpp:144