Maps an error‐code enum onto the rich‐error machinery.

Synopsis

Declared in <folly/result/rich_error_base.h>

template<typename Code>
struct rich_error_code;

Description

See docs in rich_error_code.h. DO NOT add your own rich_error_code<std::errc> ‐‐ use errc_rich_error.h.

Specializations