AlreadyExists 资源已存在
()
| 83 | |
| 84 | // AlreadyExists 资源已存在 |
| 85 | func (e *APIError) AlreadyExists() *APIError { |
| 86 | return e.dup().appendCode(http.StatusConflict, "AlreadyExists"). |
| 87 | appendLocaleTemplate(templateAlreadyExists) |
| 88 | } |
| 89 | |
| 90 | // InternalError 异常 |
| 91 | func (e *APIError) InternalError(err error) *APIError { |
nothing calls this directly
no test coverage detected