make_coded_rich_error overloads
Synopses
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);
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);
Return Value
-
A
rich_error<ErrorT<Codes...>>holding the codes and message. -
A
rich_error<ErrorT>`` holding the code and message.
Parameters
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. |
Created with MrDocs