MCPcopy Index your code
hub / github.com/erda-project/erda / InvalidParameter

Method InvalidParameter

pkg/http/httpserver/errorresp/error_codes.go:46–49  ·  view source on GitHub ↗

InvalidParameter 参数错误

(err interface{})

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

dupMethod · 0.95
toStringFunction · 0.85
appendLocaleTemplateMethod · 0.80
appendCodeMethod · 0.80

Tested by

no test coverage detected