MCPcopy Create free account
hub / github.com/deepseek-ai/3FS / typeOf

Function typeOf

src/common/utils/StatusCode.cc:24–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24StatusCodeType typeOf(status_code_t code) {
25 switch (code) {
26#define RAW_STATUS(name, ...) \
27 case k##name: \
28 return StatusCodeType::Common;
29#define STATUS(ns, name, ...) \
30 case ns##Code::k##name: \
31 return StatusCodeType::ns;
32#include "StatusCodeDetails.h"
33#undef RAW_STATUS
34#undef STATUS
35 };
36 return StatusCodeType::Invalid;
37}
38
39int toErrno(status_code_t code) {
40 // XLOGF(DBG, "error code to convert {}", code);

Callers 12

isNetworkErrorFunction · 0.85
ImplMethod · 0.85
withReadWriteTxnFunction · 0.85
successMethod · 0.85
retryableMethod · 0.85
serverErrorMethod · 0.85
needPruneSessionMethod · 0.85
isTransactionErrorMethod · 0.85
toErrnoFunction · 0.85
runMethod · 0.85
forwardImplMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected