MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / error_message

Function error_message

modules/engine/runtime/serde/json/reader.cpp:12–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10 { GUID_ERROR, "Invalid GUID" },
11};
12const char* error_message(error_code err) noexcept
13{
14 if (err < error_code::NUM_JSON_ERROR_CODES)
15 {
16 return simdjson::error_message(static_cast<simdjson::error_code>(err));
17 }
18 else
19 {
20 return error_infos[err - error_code::NUM_JSON_ERROR_CODES].message;
21 }
22}
23} // namespace skr::json
24
25namespace skr::json

Callers 6

OpenProjectMethod · 0.50
ImportMethod · 0.50
ImportMethod · 0.50
ImportMethod · 0.50
ImportMethod · 0.50
ImportMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected