Chris@16: #ifndef BOOST_ARCHIVE_XML_ARCHIVE_EXCEPTION_HPP Chris@16: #define BOOST_ARCHIVE_XML_ARCHIVE_EXCEPTION_HPP Chris@16: Chris@16: // MS compatible compilers support #pragma once Chris@101: #if defined(_MSC_VER) Chris@16: # pragma once Chris@16: #endif Chris@16: Chris@16: /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 Chris@16: // xml_archive_exception.hpp: Chris@16: Chris@16: // (C) Copyright 2007 Robert Ramey - http://www.rrsd.com . Chris@16: // Use, modification and distribution is subject to the Boost Software Chris@16: // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: // See http://www.boost.org for updates, documentation, and revision history. Chris@16: Chris@16: #include Chris@16: #include Chris@16: Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: Chris@16: #include // must be the last header Chris@16: Chris@16: namespace boost { Chris@16: namespace archive { Chris@16: Chris@16: ////////////////////////////////////////////////////////////////////// Chris@16: // exceptions thrown by xml archives Chris@16: // Chris@16: class BOOST_ARCHIVE_DECL(BOOST_PP_EMPTY()) xml_archive_exception : Chris@16: public virtual boost::archive::archive_exception Chris@16: { Chris@16: public: Chris@16: typedef enum { Chris@16: xml_archive_parsing_error, // see save_register Chris@16: xml_archive_tag_mismatch, Chris@16: xml_archive_tag_name_error Chris@16: } exception_code; Chris@16: xml_archive_exception( Chris@16: exception_code c, Chris@16: const char * e1 = NULL, Chris@16: const char * e2 = NULL Chris@16: ); Chris@16: }; Chris@16: Chris@16: }// namespace archive Chris@16: }// namespace boost Chris@16: Chris@16: #include // pops abi_suffix.hpp pragmas Chris@16: Chris@16: #endif //BOOST_XML_ARCHIVE_ARCHIVE_EXCEPTION_HPP