Line data Source code
1 : //
2 : // Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
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 21 : 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
|