¶template <
typename... FmtParams,
std::enable_if_t<sizeof...(FmtParams) >= 1,
int> = 0>
void report_error(
error_policy policy,
fmt::format_string<FmtParams...> fmt_string,
FmtParams&&... fmt_args)
template <
typename... FmtParams,
std::enable_if_t<sizeof...(FmtParams) >= 1,
int> = 0>
void report_error(
error_policy policy,
fmt::format_string<FmtParams...> fmt_string,
FmtParams&&... fmt_args)
Description
Ignores, logs, or panics on an error depending on the error_policy
.
Template Parameters
- FmtParams
- std::enable_if_t<sizeof...(FmtParams) >= 1, int> = 0
Parameters
- error_policy policy
- fmt::format_string<FmtParams...> fmt_string
- FmtParams&&... fmt_args
¶void report_error(error_policy policy,
const std::string& msg)
void report_error(error_policy policy,
const std::string& msg)
Description
Ignores, logs, or panics on an error depending on the error_policy
.
Parameters
- error_policy policy
- const std::string& msg