MCPcopy Create free account
hub / github.com/brimdata/super / Error

Method Error

service/srverr/error.go:60–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58}
59
60func (e *Error) Error() string {
61 b := strings.Builder{}
62 if e.Kind != Other {
63 b.WriteString(e.Kind.String())
64 }
65 if e.Err != nil {
66 pad(&b, ": ")
67 b.WriteString(e.Err.Error())
68 }
69 if b.Len() == 0 {
70 return "no error"
71 }
72 return b.String()
73}
74
75func (e *Error) Unwrap() error {
76 return e.Err

Callers 15

TestNoEndSlashSupportFunction · 0.45
panicCatchMiddlewareFunction · 0.45
MiddlewareMethod · 0.45
handleQueryFunction · 0.45
handleQueryStatusFunction · 0.45
handleCompileFunction · 0.45
handleQueryDescribeFunction · 0.45
handleBranchGetFunction · 0.45
handlePoolStatsFunction · 0.45
handlePoolPostFunction · 0.45
handlePoolPutFunction · 0.45
handleBranchPostFunction · 0.45

Calls 3

padFunction · 0.85
StringMethod · 0.65
LenMethod · 0.65

Tested by 6

TestNoEndSlashSupportFunction · 0.36
TestAuthIdentityFunction · 0.36
TestValidateFunction · 0.36
TestBadClaimsFunction · 0.36
TestKeyIDFunction · 0.36
TestAudienceSliceFunction · 0.36