12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- #ifndef BOOST_BEAST_ERROR_HPP
- #define BOOST_BEAST_ERROR_HPP
- #include <boost/beast/core/detail/config.hpp>
- #include <boost/system/error_code.hpp>
- #include <boost/system/system_error.hpp>
- namespace boost {
- namespace beast {
- using error_code = boost::system::error_code;
- using system_error = boost::system::system_error;
- using error_category = boost::system::error_category;
- #if BOOST_BEAST_DOXYGEN
- error_category const&
- generic_category();
- #else
- using boost::system::generic_category;
- #endif
- #if BOOST_BEAST_DOXYGEN
- error_category const&
- system_category();
- #else
- using boost::system::system_category;
- #endif
- using error_condition = boost::system::error_condition;
- #if BOOST_BEAST_DOXYGEN
- enum errc{};
- #else
- namespace errc = boost::system::errc;
- #endif
- enum class error
- {
-
- timeout = 1
- };
- enum class condition
- {
-
- timeout = 1
- };
- }
- }
- #include <boost/beast/core/impl/error.hpp>
- #ifdef BOOST_BEAST_HEADER_ONLY
- #include <boost/beast/core/impl/error.ipp>
- #endif
- #endif
|