Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
611
func
(c *Context) NewError(err error) Value {
612
return
NewValue(c.StringTypeError(), []byte(err.Error()))
613
}
614
615
func
(c *Context) StringTypeError() *TypeError {
616
if
typ := c.stringErr.Load(); typ != nil {
Callers
11
bodyPull
Method · 0.80
Eval
Method · 0.80
Eval
Method · 0.80
evalAndPromote
Method · 0.80
Eval
Method · 0.80
Eval
Method · 0.80
sliceIndex
Method · 0.80
Call
Method · 0.80
Call
Method · 0.80
exec
Method · 0.80
Eval
Method · 0.80
Calls
3
StringTypeError
Method · 0.95
NewValue
Function · 0.85
Error
Method · 0.45
Tested by
no test coverage detected