MCPcopy Create free account
hub / github.com/bytebase/bytebase / Wrap

Function Wrap

backend/common/error.go:112–117  ·  view source on GitHub ↗

Wrap is a helper function to wrap an Error with given code.

(err error, code Code)

Source from the content-addressed store, hash-verified

110
111// Wrap is a helper function to wrap an Error with given code.
112func Wrap(err error, code Code) *Error {
113 return &Error{
114 Code: code,
115 Err: err,
116 }
117}
118
119// FormatDBErrorEmptyRowWithQuery formats database error that query returns empty row.
120func FormatDBErrorEmptyRowWithQuery(query string) error {

Callers 1

parseLicenseMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected