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

Function NewWrappedError

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

Source from the content-addressed store, hash-verified

44}
45
46func NewWrappedError(sctx *super.Context, msg string, val Any) *Error {
47 msgVec := NewConstString(msg, val.Len())
48 return NewVecWrappedError(sctx, msgVec, val)
49}
50
51func NewVecWrappedError(sctx *super.Context, msg Any, val Any) *Error {
52 recType := sctx.MustLookupTypeRecord([]super.Field{

Callers 15

indexArrayOrSetFunction · 0.92
indexRecordFunction · 0.92
evalMethod · 0.92
evalMethod · 0.92
evalMethod · 0.92
evalBoolFunction · 0.92
evalMethod · 0.92
evalMethod · 0.92
evalMethod · 0.92
slowPathMethod · 0.92
CallMethod · 0.92
CallMethod · 0.92

Calls 3

NewConstStringFunction · 0.85
NewVecWrappedErrorFunction · 0.85
LenMethod · 0.65

Tested by

no test coverage detected