bad_archive_exception.hpp 837 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* Copyright 2003-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 http://www.boost.org/libs/multi_index for library home page.
  7. */
  8. #ifndef BOOST_MULTI_INDEX_DETAIL_BAD_ARCHIVE_EXCEPTION_HPP
  9. #define BOOST_MULTI_INDEX_DETAIL_BAD_ARCHIVE_EXCEPTION_HPP
  10. #if defined(_MSC_VER)
  11. #pragma once
  12. #endif
  13. #include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
  14. #include <stdexcept>
  15. namespace boost{
  16. namespace multi_index{
  17. namespace detail{
  18. struct bad_archive_exception:std::runtime_error
  19. {
  20. bad_archive_exception():std::runtime_error("Invalid or corrupted archive"){}
  21. };
  22. } /* namespace multi_index::detail */
  23. } /* namespace multi_index */
  24. } /* namespace boost */
  25. #endif