Files
boost_beast/include/beast/core/error.hpp
T

37 lines
963 B
C++
Raw Normal View History

2016-04-01 11:46:32 -04:00
//
// Copyright (c) 2013-2016 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
2016-05-04 17:27:50 -04:00
#ifndef BEAST_ERROR_HPP
#define BEAST_ERROR_HPP
2016-04-19 20:29:16 -04:00
#include <boost/system/error_code.hpp>
#include <boost/system/system_error.hpp>
2016-04-19 20:29:16 -04:00
namespace beast {
2016-05-04 17:27:50 -04:00
/// The type of error code used by the library
2016-04-19 20:29:16 -04:00
using error_code = boost::system::error_code;
2016-05-04 17:27:50 -04:00
/// The type of system error thrown by the library
using system_error = boost::system::system_error;
2016-10-04 18:00:11 -04:00
/// The type of error category used by the library
using error_category = boost::system::error_category;
/// The type of error condition used by the library
using error_condition = boost::system::error_condition;
/// The set of constants used for cross-platform error codes
#if GENERATING_DOCS
enum errc{};
#else
namespace errc = boost::system::errc;
#endif
2016-04-19 20:29:16 -04:00
} // beast
#endif