Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::exception_handler< SequenceT, HandlerT > Class Template Reference

An exception handler functional object. More...

#include <exception_handler.hpp>

Inheritance diagram for boost::exception_handler< SequenceT, HandlerT >:
Collaboration diagram for boost::exception_handler< SequenceT, HandlerT >:

Public Types

typedef base_type::handler_type handler_type
 

Public Member Functions

 exception_handler (handler_type const &handler)
 Initializing constructor. More...
 
void operator() () const
 Exception launcher. More...
 

Detailed Description

template<typename SequenceT, typename HandlerT>
class boost::exception_handler< SequenceT, HandlerT >

An exception handler functional object.

The handler aggregates a user-defined functional object that will be called when one of the specified exception types is caught.

Member Typedef Documentation

template<typename SequenceT , typename HandlerT >
typedef base_type::handler_type boost::exception_handler< SequenceT, HandlerT >::handler_type

Constructor & Destructor Documentation

template<typename SequenceT , typename HandlerT >
boost::exception_handler< SequenceT, HandlerT >::exception_handler ( handler_type const &  handler)
inlineexplicit

Initializing constructor.

Creates an exception handler with the specified function object that will receive the exception.

Member Function Documentation

template<typename SequenceT , typename HandlerT >
void boost::exception_handler< SequenceT, HandlerT >::operator() ( ) const
inline

Exception launcher.

Rethrows the current exception in order to detect its type and pass it to the aggregated function object.

Note
Must be called from within a catch statement.

References operator()().

Referenced by boost::nothrow_exception_handler< SequenceT, HandlerT >::operator()().


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