MCPcopy Create free account
hub / github.com/juju/errors / makeWrappedConstError

Function makeWrappedConstError

errortypes.go:89–95  ·  view source on GitHub ↗
(err error, format string, args ...interface{})

Source from the content-addressed store, hash-verified

87}
88
89func makeWrappedConstError(err error, format string, args ...interface{}) error {
90 separator := " "
91 if err.Error() == "" || errors.Is(err, &fmtNoop{}) {
92 separator = ""
93 }
94 return fmt.Errorf(strings.Join([]string{format, "%w"}, separator), append(args, err)...)
95}
96
97// WithType is responsible for annotating an already existing error so that it
98// also satisfies that of a ConstError. The resultant error returned should

Callers 15

TimeoutfFunction · 0.85
NotFoundfFunction · 0.85
UserNotFoundfFunction · 0.85
UnauthorizedfFunction · 0.85
NotImplementedfFunction · 0.85
AlreadyExistsfFunction · 0.85
NotSupportedfFunction · 0.85
NotValidfFunction · 0.85
NotProvisionedfFunction · 0.85
NotAssignedfFunction · 0.85
BadRequestfFunction · 0.85
MethodNotAllowedfFunction · 0.85

Calls 2

ErrorMethod · 0.45
IsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…