src/detail/except.hpp

100.0% Lines (3/3) -% List of functions (0/2) -% Branches (0/0)
except.hpp
f(x) Functions (2)
Line TLA Hits Source Code
1 //
2 // Copyright (c) 2026 Mohammad Nejati
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/burl
8 //
9
10 #ifndef BOOST_BURL_SRC_DETAIL_EXCEPT_HPP
11 #define BOOST_BURL_SRC_DETAIL_EXCEPT_HPP
12
13 #include <boost/assert/source_location.hpp>
14
15 namespace boost
16 {
17 namespace burl
18 {
19 namespace detail
20 {
21
22 [[noreturn]] void
23 throw_invalid_argument(
24 char const* what,
25 2x source_location const& loc = BOOST_CURRENT_LOCATION);
26
27 [[noreturn]] void
28 throw_length_error(
29 char const* what,
30 54x source_location const& loc = BOOST_CURRENT_LOCATION);
31
32 [[noreturn]] void
33 throw_out_of_range(
34 char const* what,
35 2x source_location const& loc = BOOST_CURRENT_LOCATION);
36
37 } // namespace detail
38 } // namespace burl
39 } // namespace boost
40
41 #endif
42