MCPcopy
hub / github.com/cubefs/cubefs / ParseErrorCode

Function ParseErrorCode

proto/errors.go:263–268  ·  view source on GitHub ↗
(code int32)

Source from the content-addressed store, hash-verified

261}
262
263func ParseErrorCode(code int32) error {
264 if err, exist := code2ErrMap[code]; exist {
265 return err
266 }
267 return ErrInternalError
268}
269
270// Code2ErrMap error map to code
271var code2ErrMap = map[int32]error{

Callers 5

testDeleteFileFunction · 0.92
serveRequestMethod · 0.92
serveRequestMethod · 0.92
SuccessMethod · 0.85

Calls

no outgoing calls

Tested by 2

testDeleteFileFunction · 0.74