Error implements the error interface (huma.StatusError embeds error).
()
| 52 | |
| 53 | // Error implements the error interface (huma.StatusError embeds error). |
| 54 | func (e *ErrorEnvelope) Error() string { return e.Err.Message } |
| 55 | |
| 56 | // GetStatus implements huma.StatusError so Huma writes the right status. |
| 57 | func (e *ErrorEnvelope) GetStatus() int { return e.status } |
no outgoing calls