MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / throw_system_error

Function throw_system_error

thread/std-compat.cpp:22–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20#include "std-compat.h"
21
22static inline void throw_system_error(int err_num, const char* msg) {
23 LOG_ERROR(msg, ": ", ERRNO(err_num));
24 throw std::system_error(std::error_code(err_num, std::generic_category()), msg);
25}
26
27template<typename FMT, typename...Ts>
28static inline void log_error(FMT fmt, Ts&& ...xs) {

Callers 2

__throw_system_errorFunction · 0.85
migrateFunction · 0.85

Calls 1

ERRNOClass · 0.50

Tested by

no test coverage detected