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

Method appendLocaleTemplate

pkg/http/httpserver/errorresp/errors.go:124–131  ·  view source on GitHub ↗
(template *i18n.Template, args ...interface{})

Source from the content-addressed store, hash-verified

122}
123
124func (e *APIError) appendLocaleTemplate(template *i18n.Template, args ...interface{}) *APIError {
125 e.localeMetaMessages = append(e.localeMetaMessages, MetaMessage{
126 Key: template.Key(),
127 Args: args,
128 Default: template.Content(),
129 })
130 return e
131}
132
133func (e *APIError) setCtx(ctx interface{}) *APIError {
134 e.ctx = ctx

Callers 10

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

Calls 2

KeyMethod · 0.65
ContentMethod · 0.65

Tested by

no test coverage detected