MCPcopy Create free account
hub / github.com/erda-project/erda / dup

Method dup

pkg/http/httpserver/errorresp/errors.go:157–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155}
156
157func (e *APIError) dup() *APIError {
158 return &APIError{
159 httpCode: e.httpCode,
160 code: e.code,
161 msg: e.msg,
162 localeMetaMessages: e.localeMetaMessages,
163 ctx: e.ctx,
164 }
165}
166
167// SetCtx Set ctx
168func (e *APIError) SetCtx(ctx interface{}) *APIError {

Callers 11

SetCtxMethod · 0.95
MissingParameterMethod · 0.95
InvalidParameterMethod · 0.95
InvalidStateMethod · 0.95
NotLoginMethod · 0.95
AccessDeniedMethod · 0.95
NotFoundMethod · 0.95
AppendAuthorizedRolesMethod · 0.95
AlreadyExistsMethod · 0.95
InternalErrorMethod · 0.95
ErrorVerificationCodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected