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

Method Error

error.go:95–97  ·  view source on GitHub ↗

Error satisfies the `error` interface. It returns the error's detail field.

()

Source from the content-addressed store, hash-verified

93
94// Error satisfies the `error` interface. It returns the error's detail field.
95func (e *ErrorModel) Error() string {
96 return e.Detail
97}
98
99// Add an error to the `Errors` slice. If passed a struct that satisfies the
100// `huma.ErrorDetailer` interface, then it is used, otherwise the error

Callers 1

TestErrorFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestErrorFunction · 0.76