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

A no-throw exception handler functional object. More...

#include <exception_handler.hpp>

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

Public Types

typedef base_type::handler_type handler_type
 

Public Member Functions

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

Detailed Description

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

A no-throw exception handler functional object.

Acts similar to exception_handler, but in case if the exception cannot be handled the exception is not propagated from the handler. Instead the user-defined functional object is called with no parameters.

Member Typedef Documentation

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

Constructor & Destructor Documentation

template<typename SequenceT , typename HandlerT >
boost::nothrow_exception_handler< SequenceT, HandlerT >::nothrow_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::nothrow_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. If the type of the exception could not be detected, the user-defined handler is called with no arguments.

Note
Must be called from within a catch statement.

References boost::exception_handler< SequenceT, HandlerT >::operator()().


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