bad_archive_exception.hpp 684 B

123456789101112131415161718192021222324252627
  1. /* Copyright 2023 Joaquin M Lopez Munoz.
  2. * Distributed under the Boost Software License, Version 1.0.
  3. * (See accompanying file LICENSE_1_0.txt or copy at
  4. * http://www.boost.org/LICENSE_1_0.txt)
  5. *
  6. * See https://www.boost.org/libs/unordered for library home page.
  7. */
  8. #ifndef BOOST_UNORDERED_DETAIL_BAD_ARCHIVE_EXCEPTION_HPP
  9. #define BOOST_UNORDERED_DETAIL_BAD_ARCHIVE_EXCEPTION_HPP
  10. #include <stdexcept>
  11. namespace boost{
  12. namespace unordered{
  13. namespace detail{
  14. struct bad_archive_exception:std::runtime_error
  15. {
  16. bad_archive_exception():std::runtime_error("Invalid or corrupted archive"){}
  17. };
  18. } /* namespace detail */
  19. } /* namespace unordered */
  20. } /* namespace boost */
  21. #endif