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

Method NewErrorf

context.go:607–609  ·  view source on GitHub ↗

batch/allocator should handle these?

(format string, args ...any)

Source from the content-addressed store, hash-verified

605// batch/allocator should handle these?
606
607func (c *Context) NewErrorf(format string, args ...any) Value {
608 return NewValue(c.StringTypeError(), fmt.Appendf(nil, format, args...))
609}
610
611func (c *Context) NewError(err error) Value {
612 return NewValue(c.StringTypeError(), []byte(err.Error()))

Callers 11

ResultMethod · 0.80
bodyPullMethod · 0.80
CallMethod · 0.80
EvalMethod · 0.80
EvalMethod · 0.80
EvalMethod · 0.80
EvalMethod · 0.80
EvalMethod · 0.80
EvalMethod · 0.80
ResultMethod · 0.80
EvalMethod · 0.80

Calls 2

StringTypeErrorMethod · 0.95
NewValueFunction · 0.85

Tested by

no test coverage detected