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

Method appendCode

pkg/http/httpserver/errorresp/errors.go:99–103  ·  view source on GitHub ↗
(httpCode int, code string)

Source from the content-addressed store, hash-verified

97}
98
99func (e *APIError) appendCode(httpCode int, code string) *APIError {
100 e.httpCode = httpCode
101 e.code = code
102 return e
103}
104
105func (e *APIError) appendMsg(template *i18n.Template, args ...interface{}) *APIError {
106 msg := template.Render(args...)

Callers 10

WithCodeFunction · 0.80
MissingParameterMethod · 0.80
InvalidParameterMethod · 0.80
InvalidStateMethod · 0.80
NotLoginMethod · 0.80
AccessDeniedMethod · 0.80
NotFoundMethod · 0.80
AlreadyExistsMethod · 0.80
InternalErrorMethod · 0.80
ErrorVerificationCodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected