InternalError 异常
(err error)
| 89 | |
| 90 | // InternalError 异常 |
| 91 | func (e *APIError) InternalError(err error) *APIError { |
| 92 | return e.dup().appendCode(http.StatusInternalServerError, "InternalError"). |
| 93 | appendLocaleTemplate(templateInternalError, err.Error()) |
| 94 | } |
| 95 | |
| 96 | // ErrorVerificationCode 验证码错误 |
| 97 | func (e *APIError) ErrorVerificationCode(err error) *APIError { |