Line | |
---|
1 | #ifndef BOOST_ARCHIVE_ITERATORS_XML_UNESCAPE_EXCEPTION_HPP
|
---|
2 | #define BOOST_ARCHIVE_ITERATORS_XML_UNESCAPE_EXCEPTION_HPP
|
---|
3 |
|
---|
4 | // MS compatible compilers support #pragma once
|
---|
5 | #if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
---|
6 | # pragma once
|
---|
7 | #endif
|
---|
8 |
|
---|
9 | /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
|
---|
10 | // xml_unescape_exception.hpp:
|
---|
11 |
|
---|
12 | // (C) Copyright 2002 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)
|
---|
16 |
|
---|
17 | // See http://www.boost.org for updates, documentation, and revision history.
|
---|
18 |
|
---|
19 | #include <boost/config.hpp>
|
---|
20 | #ifndef BOOST_NO_EXCEPTIONS
|
---|
21 | #include <exception>
|
---|
22 |
|
---|
23 | #include <cassert>
|
---|
24 |
|
---|
25 | namespace boost {
|
---|
26 | namespace archive {
|
---|
27 | namespace iterators {
|
---|
28 |
|
---|
29 | //////////////////////////////////////////////////////////////////////
|
---|
30 | // exceptions thrown by xml_unescapes
|
---|
31 | //
|
---|
32 | class xml_unescape_exception : public std::exception
|
---|
33 | {
|
---|
34 | public:
|
---|
35 | xml_unescape_exception()
|
---|
36 | {}
|
---|
37 |
|
---|
38 | virtual const char *what( ) const throw( )
|
---|
39 | {
|
---|
40 | return "xml contained un-recognized escape code";
|
---|
41 | }
|
---|
42 | };
|
---|
43 |
|
---|
44 | } // namespace iterators
|
---|
45 | } // namespace archive
|
---|
46 | } // namespace boost
|
---|
47 |
|
---|
48 | #endif //BOOST_NO_EXCEPTIONS
|
---|
49 | #endif //BOOST_ARCHIVE_ITERATORS_XML_UNESCAPE_EXCEPTION_HPP
|
---|
Note: See
TracBrowser
for help on using the repository browser.