make_coded_rich_error overloads
Declared in <folly/result/coded_rich_error.h>
Builds an error from a message and multiple codes.
template<typename... Codes>
constexpr
rich_error<ErrorT<Codes...>>
make_coded_rich_error(
rich_msg msg,
ExtraArgs... extra_args,
Codes... codes);
» more...
Builds an error from a single code and a format message.
template<
typename Code,
typename... As>
constexpr
rich_error<ErrorT<Code>>
make_coded_rich_error(
Code code,
ExtraArgs... extra_args,
ext::format_string_and_location<As...> snl = "",
As const&... args);
» more...
rich_error<ErrorT<Codes...>> holding the codes and message.rich_error<ErrorT> holding the code and message.| Name | Description |
|---|---|
| msg | The rich message. |
| extra_args | Extra required arguments between the message and codes. |
| codes | The error codes. |
| code | The single error code. |
| snl | The format string and source location. |
| args | Format arguments for the message. |