3 * Copyright (c) 1998-2002
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)
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.
19 #ifndef BOOST_RE_PAT_EXCEPT_HPP
20 #define BOOST_RE_PAT_EXCEPT_HPP
22 #ifndef BOOST_REGEX_CONFIG_HPP
23 #include <boost/regex/config.hpp>
28 #ifdef BOOST_HAS_ABI_HEADERS
29 # include BOOST_ABI_PREFIX
34 #pragma warning(disable : 4275)
36 class BOOST_REGEX_DECL bad_pattern : public std::runtime_error
39 explicit bad_pattern(const std::string& s) : std::runtime_error(s){};
40 ~bad_pattern() throw();
46 class BOOST_REGEX_DECL bad_expression : public bad_pattern
49 explicit bad_expression(const std::string& s) : bad_pattern(s) {}
50 ~bad_expression() throw();
53 #ifdef BOOST_HAS_ABI_HEADERS
54 # include BOOST_ABI_SUFFIX