MCPcopy Create free account
hub / github.com/bufbuild/buf / New

Function New

private/pkg/syserror/syserror.go:55–59  ·  view source on GitHub ↗

New is a convenience function that returns a new system error by calling errors.new.

(text string)

Source from the content-addressed store, hash-verified

53
54// New is a convenience function that returns a new system error by calling errors.new.
55func New(text string) *Error {
56 return &Error{
57 Underlying: errors.New(text),
58 }
59}
60
61// Newf is a convenience function that returns a new system error by calling fmt.Errorf.
62func Newf(format string, args ...any) *Error {

Callers 15

innerFunction · 0.92
runFunction · 0.92
lsRunFunction · 0.92
OutMethod · 0.92
AddLocalModuleMethod · 0.92
AddRemoteModuleMethod · 0.92
BuildMethod · 0.92
RemoteDepsForModulesFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected