Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::xpressive::regex_error Struct Reference

The class regex_error defines the type of objects thrown as exceptions to report errors during the conversion from a string representing a regular expression to a finite state machine. More...

#include <regex_error.hpp>

Inheritance diagram for boost::xpressive::regex_error:
Collaboration diagram for boost::xpressive::regex_error:

Public Member Functions

 regex_error (regex_constants::error_type code, char const *str="")
 Constructs an object of class regex_error. More...
 
regex_constants::error_type code () const
 Accessor for the error_type value. More...
 
virtual ~regex_error () throw ()
 Destructor for class regex_error. More...
 
template<class Tag >
void set (typename Tag::type const &)
 
template<class Tag >
Tag::type const * get () const
 

Detailed Description

The class regex_error defines the type of objects thrown as exceptions to report errors during the conversion from a string representing a regular expression to a finite state machine.

Constructor & Destructor Documentation

boost::xpressive::regex_error::regex_error ( regex_constants::error_type  code,
char const *  str = "" 
)
inlineexplicit

Constructs an object of class regex_error.

Parameters
codeThe error_type this regex_error represents.
strThe message string of this regex_error.
Postcondition
code() == code
virtual boost::xpressive::regex_error::~regex_error ( )
throw (
)
inlinevirtual

Destructor for class regex_error.

Exceptions
nothrow

Member Function Documentation

regex_constants::error_type boost::xpressive::regex_error::code ( ) const
inline

Accessor for the error_type value.

Returns
the error_type code passed to the constructor
Exceptions
nothrow
template<class Tag >
Tag::type const * boost::exception::get ( ) const
inlineinherited
template<class Tag >
void boost::exception::set ( typename Tag::type const &  v)
inlineinherited

The documentation for this struct was generated from the following file: