folly::current_exception_wrapper

A convenience shorthand for exception_wrapper(current_exception()).

Synopsis

Declared in <folly/ExceptionWrapper.h>

exception_wrapper
current_exception_wrapper() noexcept;

Return Value

An exception_wrapper holding the currently handled exception.