Back to home page

EIC code displayed by LXR

 
 

    


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 // MS compatible compilers support #pragma once
0005 #if defined(_MSC_VER)
0006 # pragma once
0007 #endif
0008 
0009 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
0010 // xml_archive_exception.hpp:
0011 
0012 // (C) Copyright 2007 Robert Ramey - http://www.rrsd.com .
0013 // Use, modification and distribution is subject to the Boost Software
0014 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0015 // http://www.boost.org/LICENSE_1_0.txt)
0016 
0017 //  See http://www.boost.org for updates, documentation, and revision history.
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 // exceptions thrown by xml archives
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,    // see save_register
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 }// namespace archive
0053 }// namespace boost
0054 
0055 #include <boost/archive/detail/abi_suffix.hpp> // pops abi_suffix.hpp pragmas
0056 
0057 #endif //BOOST_XML_ARCHIVE_ARCHIVE_EXCEPTION_HPP