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

Exception class that is used to indicate parsing errors. More...

#include <exceptions.hpp>

Inheritance diagram for boost::parse_error:
Collaboration diagram for boost::parse_error:

Public Member Functions

 parse_error (const std::string &err)
 
virtual ~parse_error () throw ()
 
virtual const char * what () const throw ()
 
 parse_error ()
 Default constructor. More...
 
 parse_error (std::string const &descr)
 Initializing constructor. More...
 
 ~parse_error () throw ()
 Destructor. More...
 

Static Public Member Functions

static BOOST_LOG_NORETURN void throw_ (const char *file, std::size_t line)
 
static BOOST_LOG_NORETURN void throw_ (const char *file, std::size_t line, std::string const &descr)
 
static BOOST_LOG_NORETURN void throw_ (const char *file, std::size_t line, std::string const &descr, std::size_t content_line)
 
static BOOST_LOG_NORETURN void throw_ (const char *file, std::size_t line, std::string const &descr, attribute_name const &name)
 

Public Attributes

std::string statement
 
std::string error
 

Detailed Description

Exception class that is used to indicate parsing errors.

Constructor & Destructor Documentation

boost::parse_error::parse_error ( const std::string &  err)
inline

References error, and statement.

virtual boost::parse_error::~parse_error ( )
throw (
)
inlinevirtual
boost::parse_error::parse_error ( )

Default constructor.

Creates an exception with the default error message.

boost::parse_error::parse_error ( std::string const &  descr)
explicit

Initializing constructor.

Creates an exception with the specified error message.

boost::parse_error::~parse_error ( )
throw (
)

Destructor.

Member Function Documentation

static BOOST_LOG_NORETURN void boost::parse_error::throw_ ( const char *  file,
std::size_t  line 
)
static
static BOOST_LOG_NORETURN void boost::parse_error::throw_ ( const char *  file,
std::size_t  line,
std::string const &  descr 
)
static
static BOOST_LOG_NORETURN void boost::parse_error::throw_ ( const char *  file,
std::size_t  line,
std::string const &  descr,
std::size_t  content_line 
)
static
static BOOST_LOG_NORETURN void boost::parse_error::throw_ ( const char *  file,
std::size_t  line,
std::string const &  descr,
attribute_name const &  name 
)
static
virtual const char* boost::parse_error::what ( ) const
throw (
)
inlinevirtual

Implements boost::graph_exception.

References statement.

Member Data Documentation

std::string boost::parse_error::error

Referenced by parse_error().

std::string boost::parse_error::statement

Referenced by parse_error(), and what().


The documentation for this class was generated from the following files: