MCPcopy
hub / github.com/danielgtaylor/huma / MyError

Struct MyError

examples/custom-error/main.go:15–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13)
14
15type MyError struct {
16 status int
17 Message string `json:"message"`
18 Details []string `json:"details,omitempty"`
19}
20
21func (e *MyError) Error() string {
22 return e.Message

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected