]> git.lyx.org Git - lyx.git/blob - boost/boost/regex/pattern_except.hpp
major boost update
[lyx.git] / boost / boost / regex / pattern_except.hpp
1 /*
2  *
3  * Copyright (c) 1998-2002
4  * Dr John Maddock
5  *
6  * Permission to use, copy, modify, distribute and sell this software
7  * and its documentation for any purpose is hereby granted without fee,
8  * provided that the above copyright notice appear in all copies and
9  * that both that copyright notice and this permission notice appear
10  * in supporting documentation.  Dr John Maddock makes no representations
11  * about the suitability of this software for any purpose.  
12  * It is provided "as is" without express or implied warranty.
13  *
14  */
15  
16  /*
17   *   LOCATION:    see http://www.boost.org for most recent version.
18   *   FILE         pattern_except.hpp
19   *   VERSION      see <boost/version.hpp>
20   *   DESCRIPTION: Declares pattern-matching exception classes.
21   */
22
23 #ifndef BOOST_RE_PAT_EXCEPT_HPP
24 #define BOOST_RE_PAT_EXCEPT_HPP
25
26 #include <boost/regex/config.hpp>
27
28 namespace boost{
29
30 #ifdef __BORLANDC__
31    #pragma option push -a4 -b -Ve -pc
32 #endif
33
34 class BOOST_REGEX_DECL bad_pattern : public std::runtime_error
35 {
36 public:
37    explicit bad_pattern(const std::string& s) : std::runtime_error(s){};
38    ~bad_pattern() throw();
39 };
40
41 class BOOST_REGEX_DECL bad_expression : public bad_pattern
42 {
43 public:
44    explicit bad_expression(const std::string& s) : bad_pattern(s) {}
45    ~bad_expression() throw();
46 };
47
48
49 #ifdef __BORLANDC__
50   #pragma option pop
51 #endif
52
53 } // namespace boost
54
55 #endif
56
57