A fmt‐formattable view of all codes in this error's hierarchy.

Synopsis

Declared in <folly/result/rich_error_base.h>

class fmt_all_codes_t;

Description

Renders all the available codes in this error's inheritance hierarchy, like so: "Specific=1, General=2".

const rich_error_base& err = ...; auto s = fmt::format("code={}", err.all_codes_for_fmt());

Friends

Name

Description

fmt::formatter<folly::rich_error_base::fmt_all_codes_t>

fmt::format support that renders all codes of a rich error.

folly::rich_error_base

Base class for exceptions that carry a queryable rich error code.

Created with MrDocs