folly::exception_wrapper::handle

Handle the wrapped expression as if with a series of catch clauses, propagating the exception if no handler matches.

Synopses

Declared in <folly/ExceptionWrapper.h>

Handle the wrapped expression as if with a series of catch clauses, propagating the exception if no handler matches.

template<class... CatchFns>
void
handle(CatchFns... fns);
» more...
template<class... CatchFns>
void
handle(CatchFns... fns) const;
» more...

Template Parameters

NameDescription
CatchFnsA pack of unary monomorphic function object types.

Parameters

NameDescription
fnsA pack of unary monomorphic function objects to be treated as an ordered list of potential exception handlers.

Preconditions

  • !*this