MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / BasicError

Struct BasicError

pkg/error/error.go:87–93  ·  view source on GitHub ↗

BasicError struct

Source from the content-addressed store, hash-verified

85
86// BasicError struct
87type BasicError struct {
88 Code ErrorType `json:"Code,omitempty"`
89 Cause string `json:"Cause,omitempty"`
90 Message string `json:"Message"`
91 Status int `json:"Status,omitempty"`
92 Type string `json:"Type,omitempty"`
93}
94
95// Error struct compatible with standard `error` interface
96func (err BasicError) Error() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected