]> git.lyx.org Git - lyx.git/blob - boost/boost/regex/pattern_except.hpp
Boost 1.31.0
[lyx.git] / boost / boost / regex / pattern_except.hpp
1 /*
2  *
3  * Copyright (c) 1998-2002
4  * Dr John Maddock
5  *
6  * Use, modification and distribution are subject to the 
7  * Boost Software License, Version 1.0. (See accompanying file 
8  * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9  *
10  */
11  
12  /*
13   *   LOCATION:    see http://www.boost.org for most recent version.
14   *   FILE         pattern_except.hpp
15   *   VERSION      see <boost/version.hpp>
16   *   DESCRIPTION: Declares pattern-matching exception classes.
17   */
18
19 #ifndef BOOST_RE_PAT_EXCEPT_HPP
20 #define BOOST_RE_PAT_EXCEPT_HPP
21
22 #ifndef BOOST_REGEX_CONFIG_HPP
23 #include <boost/regex/config.hpp>
24 #endif
25
26 namespace boost{
27
28 #ifdef BOOST_HAS_ABI_HEADERS
29 #  include BOOST_ABI_PREFIX
30 #endif
31
32 #ifdef BOOST_MSVC
33 #pragma warning(push)
34 #pragma warning(disable : 4275)
35 #endif
36 class BOOST_REGEX_DECL bad_pattern : public std::runtime_error
37 {
38 public:
39    explicit bad_pattern(const std::string& s) : std::runtime_error(s){};
40    ~bad_pattern() throw();
41 };
42 #ifdef BOOST_MSVC
43 #pragma warning(pop)
44 #endif
45
46 class BOOST_REGEX_DECL bad_expression : public bad_pattern
47 {
48 public:
49    explicit bad_expression(const std::string& s) : bad_pattern(s) {}
50    ~bad_expression() throw();
51 };
52
53 #ifdef BOOST_HAS_ABI_HEADERS
54 #  include BOOST_ABI_SUFFIX
55 #endif
56
57 } // namespace boost
58
59 #endif
60
61
62