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

Method MissingParameter

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

MissingParameter 缺少参数

(err string)

Source from the content-addressed store, hash-verified

38
39// MissingParameter 缺少参数
40func (e *APIError) MissingParameter(err string) *APIError {
41 return e.dup().appendCode(http.StatusBadRequest, "MissingParameter").
42 appendLocaleTemplate(templateMissingParameter, err)
43}
44
45// InvalidParameter 参数错误
46func (e *APIError) InvalidParameter(err interface{}) *APIError {

Callers

nothing calls this directly

Calls 3

dupMethod · 0.95
appendLocaleTemplateMethod · 0.80
appendCodeMethod · 0.80

Tested by

no test coverage detected