Error satisfies the `error` interface. It returns the error's detail field.
()
| 93 | |
| 94 | // Error satisfies the `error` interface. It returns the error's detail field. |
| 95 | func (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 |