Builds an error from a message and multiple codes.

Synopsis

Declared in <folly/result/coded_rich_error.h>

template<typename... Codes>
constexpr
rich_error<ErrorT<Codes...>>
make_nestable_coded_rich_error(
    rich_msg msg,
    ExtraArgs... extra_args,
    Codes... codes);
Note

This function is defined as an Algorithm Function Object (AFO).

Description

Power users ‐‐ multiple codes: ErrorT(rich_msg{"msg"}, [extra_args,]Code1::A, Code2::B)

Return Value

A rich_error<ErrorT<Codes...>> holding the codes and message.

Parameters

Name

Description

msg

The rich message.

extra_args

Extra required arguments between the message and codes.

codes

The error codes.

Created with MrDocs