MCPcopy
hub / github.com/dragonflyoss/dragonfly / New

Function New

internal/dferrors/error.go:53–58  ·  view source on GitHub ↗
(code commonv1.Code, msg string)

Source from the content-addressed store, hash-verified

51}
52
53func New(code commonv1.Code, msg string) *DfError {
54 return &DfError{
55 Code: code,
56 Message: msg,
57 }
58}
59
60func Newf(code commonv1.Code, format string, a ...any) *DfError {
61 return &DfError{

Callers 6

RegisterPeerTaskMethod · 0.92
ReportPieceResultMethod · 0.92
ReportPeerResultMethod · 0.92
AnnounceTaskMethod · 0.92
StatTaskMethod · 0.92
LeaveHostMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected