include/boost/beast2/detail/except.hpp

100.0% Lines (1/1) -% List of functions (0/1) -% Branches (0/0)
except.hpp
f(x) Functions (1)
Function Calls Lines Blocks
<unknown function 26> :26 – – –
Line TLA Hits Source Code
1 //
2 // Copyright (c) 2019 Vinnie Falco ([email protected])
3 //
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)
6 //
7 // Official repository: https://github.com/cppalliance/beast2
8 //
9
10 #ifndef BOOST_BEAST2_DETAIL_EXCEPT_HPP
11 #define BOOST_BEAST2_DETAIL_EXCEPT_HPP
12
13 #include <boost/assert/source_location.hpp>
14 #include <boost/beast2/detail/config.hpp>
15 #include <boost/core/detail/string_view.hpp>
16
17 namespace boost {
18 namespace beast2 {
19 namespace detail {
20
21 BOOST_BEAST2_DECL void BOOST_NORETURN throw_bad_typeid(
22 source_location const& loc = BOOST_CURRENT_LOCATION);
23
24 BOOST_BEAST2_DECL void BOOST_NORETURN throw_invalid_argument(
25 core::string_view s = "invalid argument",
26 12x source_location const& loc = BOOST_CURRENT_LOCATION);
27
28 BOOST_BEAST2_DECL void BOOST_NORETURN throw_logic_error(
29 core::string_view s = "logic error",
30 source_location const& loc = BOOST_CURRENT_LOCATION);
31
32 } // detail
33 } // beast2
34 } // boost
35
36 #endif
37