MCPcopy Index your code
hub / github.com/AbelChe/evil_minio / ToAPIErr

Method ToAPIErr

cmd/api-errors.go:443–445  ·  view source on GitHub ↗
(errCode APIErrorCode)

Source from the content-addressed store, hash-verified

441}
442
443func (e errorCodeMap) ToAPIErr(errCode APIErrorCode) APIError {
444 return e.ToAPIErrWithErr(errCode, nil)
445}
446
447// error code to APIError structure, these fields carry respective
448// descriptions for all the error responses.

Calls 1

ToAPIErrWithErrMethod · 0.95

Tested by 1

TestCheckValidFunction · 0.64