2 // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 // Official repository: https://github.com/boostorg/beast
10 #ifndef BOOST_BEAST_ERROR_HPP
11 #define BOOST_BEAST_ERROR_HPP
13 #include <boost/beast/core/detail/config.hpp>
14 #include <boost/system/error_code.hpp>
15 #include <boost/system/system_error.hpp>
20 /// The type of error code used by the library
21 using error_code = boost::system::error_code;
23 /// The type of system error thrown by the library
24 using system_error = boost::system::system_error;
26 /// The type of error category used by the library
27 using error_category = boost::system::error_category;
29 /// A function to return the generic error category used by the library
30 #if BOOST_BEAST_DOXYGEN
34 using boost::system::generic_category;
37 /// A function to return the system error category used by the library
38 #if BOOST_BEAST_DOXYGEN
42 using boost::system::system_category;
45 /// The type of error condition used by the library
46 using error_condition = boost::system::error_condition;
48 /// The set of constants used for cross-platform error codes
49 #if BOOST_BEAST_DOXYGEN
52 namespace errc = boost::system::errc;