MCPcopy Index your code
hub / github.com/bytebase/bytebase / Errorf

Function Errorf

backend/common/error.go:104–109  ·  view source on GitHub ↗

Errorf is a helper function to create an Error with given code and formatted message.

(code Code, format string, args ...any)

Source from the content-addressed store, hash-verified

102
103// Errorf is a helper function to create an Error with given code and formatted message.
104func Errorf(code Code, format string, args ...any) *Error {
105 return &Error{
106 Code: code,
107 Err: pkgerrors.Errorf(format, args...),
108 }
109}
110
111// Wrap is a helper function to wrap an Error with given code.
112func Wrap(err error, code Code) *Error {

Callers 15

SyncDBSchemaMethod · 0.92
SyncDBSchemaMethod · 0.92
SyncDBSchemaMethod · 0.92
SyncDBSchemaMethod · 0.92
SyncDBSchemaMethod · 0.92
SyncDBSchemaMethod · 0.92
SyncDBSchemaMethod · 0.92
SyncDBSchemaMethod · 0.92
SyncDBSchemaMethod · 0.92
executeGhostMigrationFunction · 0.92
RunForTargetMethod · 0.92

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected