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

Method NewError

context.go:611–613  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

609}
610
611func (c *Context) NewError(err error) Value {
612 return NewValue(c.StringTypeError(), []byte(err.Error()))
613}
614
615func (c *Context) StringTypeError() *TypeError {
616 if typ := c.stringErr.Load(); typ != nil {

Callers 11

bodyPullMethod · 0.80
EvalMethod · 0.80
EvalMethod · 0.80
evalAndPromoteMethod · 0.80
EvalMethod · 0.80
EvalMethod · 0.80
sliceIndexMethod · 0.80
CallMethod · 0.80
CallMethod · 0.80
execMethod · 0.80
EvalMethod · 0.80

Calls 3

StringTypeErrorMethod · 0.95
NewValueFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected