MCPcopy Create free account
hub / github.com/bytedance/sonic-cpp / SonicErrorInfo

Class SonicErrorInfo

include/sonic/error.h:58–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57inline const char* ErrorMsg(SonicError error) noexcept {
58 struct SonicErrorInfo {
59 SonicError err;
60 const char* msg;
61 };
62 static const SonicErrorInfo kErrorMsg[kErrorNums] = {
63 {kErrorNone, "No errors"},
64 {kParseErrorEof, "Parse: JSON is empty or truncated."},

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected