folly::error_or_stopped::get_exception

Implements the folly::get_exception<Ex>(res) protocol.

Synopsis

Declared in <folly/result/result.h>

template<typename Ex>
rich_ptr_to_underlying_error<Ex const>
get_exception(get_exception_tag_t tag) const noexcept;

Return Value

A pointer to the stored const Ex, or nullptr.

Parameters

NameDescription
tagProtocol dispatch tag.