1 #ifndef BOOST_ARCHIVE_XML_ARCHIVE_EXCEPTION_HPP
2 #define BOOST_ARCHIVE_XML_ARCHIVE_EXCEPTION_HPP
4 // MS compatible compilers support #pragma once
9 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
10 // xml_archive_exception.hpp:
12 // (C) Copyright 2007 Robert Ramey - http://www.rrsd.com .
13 // Use, modification and distribution is subject to the Boost Software
14 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
15 // http://www.boost.org/LICENSE_1_0.txt)
17 // See http://www.boost.org for updates, documentation, and revision history.
20 #include <boost/assert.hpp>
22 #include <boost/config.hpp>
23 #include <boost/preprocessor/empty.hpp>
24 #include <boost/archive/detail/decl.hpp>
25 #include <boost/archive/archive_exception.hpp>
27 #include <boost/archive/detail/abi_prefix.hpp> // must be the last header
32 //////////////////////////////////////////////////////////////////////
33 // exceptions thrown by xml archives
35 class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) xml_archive_exception :
36 public virtual boost::archive::archive_exception
40 xml_archive_parsing_error, // see save_register
41 xml_archive_tag_mismatch,
42 xml_archive_tag_name_error
44 xml_archive_exception(
46 const char * e1 = NULL,
47 const char * e2 = NULL
54 #include <boost/archive/detail/abi_suffix.hpp> // pops abi_suffix.hpp pragmas
56 #endif //BOOST_XML_ARCHIVE_ARCHIVE_EXCEPTION_HPP