MCPcopy
hub / github.com/devtron-labs/devtron / WithCode

Method WithCode

internal/util/ErrorUtil.go:58–61  ·  view source on GitHub ↗
(code string)

Source from the content-addressed store, hash-verified

56}
57
58func (e *ApiError) WithCode(code string) *ApiError {
59 e.Code = code
60 return e
61}
62func (e *ApiError) WithInternalMessage(InternalMessage string) *ApiError {
63 e.InternalMessage = InternalMessage
64 return e

Calls

no outgoing calls

Tested by

no test coverage detected