Class template exception_handler
boost::log::exception_handler
Synopsis
template<typename SequenceT, typename HandlerT>
class exception_handler : public type {
public:
typedef HandlerT handler_type;
typedef void result_type;
explicit exception_handler(handler_type const &);
void operator()() const;
};
Description
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.
exception_handler
public
construct/copy/destruct
-
explicit exception_handler(handler_type const & handler);
Initializing constructor. Creates an exception handler with the specified function object that will receive the exception.
exception_handler
public member functions
-
void operator()() const;
Exception launcher. Rethrows the current exception in order to detect its type and pass it to the aggregated function object.
![[Note]](../../../../../../doc/src/images/note.png) |
Note |
Must be called from within a catch statement. |