File indexing completed on 2025-01-18 09:28:30
0001 #ifndef BOOST_ARCHIVE_XML_ARCHIVE_EXCEPTION_HPP
0002 #define BOOST_ARCHIVE_XML_ARCHIVE_EXCEPTION_HPP
0003
0004
0005 #if defined(_MSC_VER)
0006 # pragma once
0007 #endif
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 #include <exception>
0020 #include <boost/assert.hpp>
0021
0022 #include <boost/config.hpp>
0023 #include <boost/archive/detail/decl.hpp>
0024 #include <boost/archive/archive_exception.hpp>
0025
0026 #include <boost/archive/detail/abi_prefix.hpp> // must be the last header
0027
0028 namespace boost {
0029 namespace archive {
0030
0031
0032
0033
0034 class BOOST_SYMBOL_VISIBLE xml_archive_exception :
0035 public virtual boost::archive::archive_exception
0036 {
0037 public:
0038 typedef enum {
0039 xml_archive_parsing_error,
0040 xml_archive_tag_mismatch,
0041 xml_archive_tag_name_error
0042 } exception_code;
0043 BOOST_ARCHIVE_DECL xml_archive_exception(
0044 exception_code c,
0045 const char * e1 = NULL,
0046 const char * e2 = NULL
0047 );
0048 BOOST_ARCHIVE_DECL xml_archive_exception(xml_archive_exception const &);
0049 BOOST_ARCHIVE_DECL ~xml_archive_exception() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE;
0050 };
0051
0052 }
0053 }
0054
0055 #include <boost/archive/detail/abi_suffix.hpp> // pops abi_suffix.hpp pragmas
0056
0057 #endif