MCPcopy
hub / github.com/marmotedu/iam / ErrCode

Struct ErrCode

internal/pkg/code/code.go:15–27  ·  view source on GitHub ↗

ErrCode implements `github.com/marmotedu/errors`.Coder interface.

Source from the content-addressed store, hash-verified

13
14// ErrCode implements `github.com/marmotedu/errors`.Coder interface.
15type ErrCode struct {
16 // C refers to the code of the ErrCode.
17 C int
18
19 // HTTP status that should be used for the associated error code.
20 HTTP int
21
22 // External (user) facing error text.
23 Ext string
24
25 // Ref specify the reference document.
26 Ref string
27}
28
29var _ errors.Coder = &ErrCode{}
30

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected