3
* Copyright (c) 1998-2002
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.
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.
23
#ifndef BOOST_RE_PAT_EXCEPT_HPP
24
#define BOOST_RE_PAT_EXCEPT_HPP
26
#include <boost/regex/config.hpp>
31
#pragma option push -a8 -b -Vx -Ve -pc
36
#pragma warning(disable : 4275)
38
class BOOST_REGEX_DECL bad_pattern : public std::runtime_error
41
explicit bad_pattern(const std::string& s) : std::runtime_error(s){};
42
~bad_pattern() throw();
48
class BOOST_REGEX_DECL bad_expression : public bad_pattern
51
explicit bad_expression(const std::string& s) : bad_pattern(s) {}
52
~bad_expression() throw();