except.hpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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/boostorg/url
  8. //
  9. #ifndef BOOST_URL_DETAIL_EXCEPT_HPP
  10. #define BOOST_URL_DETAIL_EXCEPT_HPP
  11. #include <boost/url/error_types.hpp>
  12. #include <boost/assert/source_location.hpp>
  13. namespace boost {
  14. namespace urls {
  15. namespace detail {
  16. BOOST_URL_DECL void BOOST_NORETURN
  17. throw_system_error(
  18. system::error_code const& ec,
  19. source_location const& loc =
  20. BOOST_URL_POS);
  21. BOOST_URL_DECL void BOOST_NORETURN
  22. throw_errc(
  23. boost::system::errc::errc_t ev,
  24. source_location const& loc =
  25. BOOST_URL_POS);
  26. //-----
  27. BOOST_URL_DECL void BOOST_NORETURN
  28. throw_invalid_argument(
  29. source_location const& loc =
  30. BOOST_URL_POS);
  31. BOOST_URL_DECL void BOOST_NORETURN
  32. throw_length_error(
  33. source_location const& loc =
  34. BOOST_URL_POS);
  35. } // detail
  36. } // urls
  37. } // boost
  38. #endif