InvalidParameter 参数错误
(err interface{})
| 44 | |
| 45 | // InvalidParameter 参数错误 |
| 46 | func (e *APIError) InvalidParameter(err interface{}) *APIError { |
| 47 | return e.dup().appendCode(http.StatusBadRequest, "InvalidParameter"). |
| 48 | appendLocaleTemplate(templateInvalidParameter, toString(err)) |
| 49 | } |
| 50 | |
| 51 | // InvalidState 状态异常 |
| 52 | func (e *APIError) InvalidState(err string) *APIError { |
nothing calls this directly
no test coverage detected