MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / Error

Method Error

pkg/serializer/error.go:50–55  ·  view source on GitHub ↗

Error 返回业务代码确定的可读错误信息

()

Source from the content-addressed store, hash-verified

48
49// Error 返回业务代码确定的可读错误信息
50func (err AppError) Error() string {
51 if err.RawError != nil {
52 return fmt.Sprintf("%s: %s", err.Msg, err.RawError.Error())
53 }
54 return err.Msg
55}
56
57func (err AppError) ErrCode() int {
58 var inheritedErr AppError

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.65

Tested by

no test coverage detected