MCPcopy
hub / github.com/go-dev-frame/sponge / Error

Struct Error

pkg/errcode/http_error.go:18–26  ·  view source on GitHub ↗

Error error

Source from the content-addressed store, hash-verified

16
17// Error error
18type Error struct {
19 code int
20 msg string
21 details []string
22
23 // if true, need to convert to standard http code
24 // use ErrToHTTP and ParseError will set this to true
25 needHTTPCode bool
26}
27
28// NewError create a new error message
29func NewError(code int, msg string, details ...string) *Error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected