2000-09-26 11:48:28 +00:00
|
|
|
/*
|
|
|
|
*
|
2002-04-24 10:50:23 +00:00
|
|
|
* Copyright (c) 1998-2002
|
2000-09-26 11:48:28 +00:00
|
|
|
* Dr John Maddock
|
|
|
|
*
|
2003-10-04 11:29:20 +00:00
|
|
|
* Use, modification and distribution are subject to the
|
2003-09-30 13:02:51 +00:00
|
|
|
* Boost Software License, Version 1.0. (See accompanying file
|
|
|
|
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
2000-09-26 11:48:28 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* LOCATION: see http://www.boost.org for most recent version.
|
2001-09-19 11:48:51 +00:00
|
|
|
* FILE pattern_except.hpp
|
2001-09-30 10:30:14 +00:00
|
|
|
* VERSION see <boost/version.hpp>
|
2000-09-26 11:48:28 +00:00
|
|
|
* DESCRIPTION: Declares pattern-matching exception classes.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef BOOST_RE_PAT_EXCEPT_HPP
|
|
|
|
#define BOOST_RE_PAT_EXCEPT_HPP
|
|
|
|
|
2003-05-17 11:45:48 +00:00
|
|
|
#ifndef BOOST_REGEX_CONFIG_HPP
|
2001-09-18 11:13:39 +00:00
|
|
|
#include <boost/regex/config.hpp>
|
2003-05-17 11:45:48 +00:00
|
|
|
#endif
|
2000-09-26 11:48:28 +00:00
|
|
|
|
|
|
|
namespace boost{
|
|
|
|
|
2003-08-14 10:22:05 +00:00
|
|
|
#ifdef BOOST_HAS_ABI_HEADERS
|
2003-08-12 11:23:02 +00:00
|
|
|
# include BOOST_ABI_PREFIX
|
2000-09-26 11:48:28 +00:00
|
|
|
#endif
|
|
|
|
|
2002-10-21 11:03:05 +00:00
|
|
|
#ifdef BOOST_MSVC
|
|
|
|
#pragma warning(push)
|
|
|
|
#pragma warning(disable : 4275)
|
|
|
|
#endif
|
2001-09-18 11:13:39 +00:00
|
|
|
class BOOST_REGEX_DECL bad_pattern : public std::runtime_error
|
2000-09-26 11:48:28 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit bad_pattern(const std::string& s) : std::runtime_error(s){};
|
2000-10-14 22:56:18 +00:00
|
|
|
~bad_pattern() throw();
|
2000-09-26 11:48:28 +00:00
|
|
|
};
|
2002-10-21 11:03:05 +00:00
|
|
|
#ifdef BOOST_MSVC
|
|
|
|
#pragma warning(pop)
|
|
|
|
#endif
|
2000-09-26 11:48:28 +00:00
|
|
|
|
2001-09-18 11:13:39 +00:00
|
|
|
class BOOST_REGEX_DECL bad_expression : public bad_pattern
|
2000-09-26 11:48:28 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit bad_expression(const std::string& s) : bad_pattern(s) {}
|
2000-10-14 22:56:18 +00:00
|
|
|
~bad_expression() throw();
|
2000-09-26 11:48:28 +00:00
|
|
|
};
|
|
|
|
|
2003-08-14 10:22:05 +00:00
|
|
|
#ifdef BOOST_HAS_ABI_HEADERS
|
2003-08-12 11:23:02 +00:00
|
|
|
# include BOOST_ABI_SUFFIX
|
2000-09-26 11:48:28 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
} // namespace boost
|
|
|
|
|
|
|
|
#endif
|
2001-09-19 11:48:51 +00:00
|
|
|
|
2002-04-24 10:50:23 +00:00
|
|
|
|
2003-09-30 13:02:51 +00:00
|
|
|
|