MCPcopy Create free account
hub / github.com/DoNewsCode/core / AlreadyExistsErr

Function AlreadyExistsErr

unierr/error.go:230–232  ·  view source on GitHub ↗

AlreadyExistsErr creates an Error with codes.AlreadyExists

(e error, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

228
229// AlreadyExistsErr creates an Error with codes.AlreadyExists
230func AlreadyExistsErr(e error, msgAndArgs ...interface{}) *Error {
231 return err(codes.AlreadyExists, e, msgAndArgs...)
232}
233
234// IsAlreadyExistsErr checks if an Error has codes.AlreadyExists
235func IsAlreadyExistsErr(e error) bool {

Callers

nothing calls this directly

Calls 1

errFunction · 0.85

Tested by

no test coverage detected