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

Function NewVecWrappedError

vector/error.go:51–58  ·  view source on GitHub ↗
(sctx *super.Context, msg Any, val Any)

Source from the content-addressed store, hash-verified

49}
50
51func NewVecWrappedError(sctx *super.Context, msg Any, val Any) *Error {
52 recType := sctx.MustLookupTypeRecord([]super.Field{
53 {Name: "message", Type: msg.Type()},
54 {Name: "on", Type: val.Type()},
55 })
56 rval := NewRecord(recType, []Any{msg, val}, val.Len())
57 return &Error{Typ: sctx.LookupTypeError(recType), Vals: rval}
58}

Callers 6

slowPathMethod · 0.92
CallMethod · 0.92
errorVecMethod · 0.92
CallMethod · 0.92
CallMethod · 0.92
NewWrappedErrorFunction · 0.85

Calls 5

NewRecordFunction · 0.85
MustLookupTypeRecordMethod · 0.80
LookupTypeErrorMethod · 0.80
TypeMethod · 0.65
LenMethod · 0.65

Tested by

no test coverage detected