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

Function NewApiError

internal/util/ErrorUtil.go:41–48  ·  view source on GitHub ↗
(code int, userMessage, internalMessage string)

Source from the content-addressed store, hash-verified

39}
40
41func NewApiError(code int, userMessage, internalMessage string) *ApiError {
42 return &ApiError{
43 HttpStatusCode: code,
44 Code: strconv.Itoa(code),
45 InternalMessage: internalMessage,
46 UserMessage: userMessage,
47 }
48}
49func DefaultApiError() *ApiError {
50 return &ApiError{}
51}

Callers 15

SavePolicyMethod · 0.92
validateDetailRequestMethod · 0.92
GetPluginDetailV2Method · 0.92
validatePluginVariableFunction · 0.92
ValidatePluginVersionFunction · 0.92
ValidateMethod · 0.92
overrideInfraConfigMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…