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
|
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, distribute and sell this software
|
|
|
|
* and its documentation for any purpose is hereby granted without fee,
|
|
|
|
* provided that the above copyright notice appear in all copies and
|
|
|
|
* that both that copyright notice and this permission notice appear
|
|
|
|
* in supporting documentation. Dr John Maddock makes no representations
|
|
|
|
* about the suitability of this software for any purpose.
|
|
|
|
* It is provided "as is" without express or implied warranty.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 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-12 11:23:02 +00:00
|
|
|
#ifdef BOST_HAS_ABI_HEADERS
|
|
|
|
# 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-12 11:23:02 +00:00
|
|
|
#ifdef BOST_HAS_ABI_HEADERS
|
|
|
|
# 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
|
|
|
|