File indexing completed on 2025-12-16 09:43:58
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_BEAST_ERROR_HPP
0011 #define BOOST_BEAST_ERROR_HPP
0012
0013 #include <boost/beast/core/detail/config.hpp>
0014 #include <boost/system/error_code.hpp>
0015 #include <boost/system/system_error.hpp>
0016
0017 namespace boost {
0018 namespace beast {
0019
0020
0021 using error_code = boost::system::error_code;
0022
0023
0024 using system_error = boost::system::system_error;
0025
0026
0027 using error_category = boost::system::error_category;
0028
0029
0030 #if BOOST_BEAST_DOXYGEN
0031 error_category const&
0032 generic_category();
0033 #else
0034 using boost::system::generic_category;
0035 #endif
0036
0037
0038 #if BOOST_BEAST_DOXYGEN
0039 error_category const&
0040 system_category();
0041 #else
0042 using boost::system::system_category;
0043 #endif
0044
0045
0046 using error_condition = boost::system::error_condition;
0047
0048
0049 #if BOOST_BEAST_DOXYGEN
0050 enum errc{};
0051 #else
0052 namespace errc = boost::system::errc;
0053 #endif
0054
0055
0056
0057
0058 enum class error
0059 {
0060
0061
0062
0063
0064
0065
0066
0067 timeout = 1
0068 };
0069
0070
0071 enum class condition
0072 {
0073
0074
0075
0076
0077 timeout = 1
0078 };
0079
0080 }
0081 }
0082
0083 #include <boost/beast/core/impl/error.hpp>
0084 #ifdef BOOST_BEAST_HEADER_ONLY
0085 #include <boost/beast/core/impl/error.ipp>
0086 #endif
0087
0088 #endif