MCPcopy Index your code
hub / github.com/DoNewsCode/core / Error

Method Error

unierr/error.go:116–121  ·  view source on GitHub ↗

Error implements error. it consults the Printer for the output.

()

Source from the content-addressed store, hash-verified

114
115// Error implements error. it consults the Printer for the output.
116func (e *Error) Error() string {
117 if e.Printer == nil {
118 e.Printer = text.BasePrinter{}
119 }
120 return e.Printer.Sprintf(e.msg, e.args...)
121}
122
123// GRPCStatus produces a native gRPC status.
124func (e *Error) GRPCStatus() *status.Status {

Callers 15

MarshalJSONMethod · 0.95
GRPCStatusMethod · 0.95
signalWatchMethod · 0.45
encodeFunction · 0.45
ErrfMethod · 0.45
ErrwMethod · 0.45
ErrMethod · 0.45
TestJobOptionFunction · 0.45
TestMetricsFunction · 0.45

Calls 1

SprintfMethod · 0.65

Tested by 13

TestJobOptionFunction · 0.36
TestMetricsFunction · 0.36
TestWrapFunction · 0.36
TestCampaignFunction · 0.36
TestKoanfAdapter_ReloadFunction · 0.36
TestRemoteFunction · 0.36