MCPcopy Create free account
hub / github.com/cel-expr/cel-go / NewError

Method NewError

parser/helper.go:504–506  ·  view source on GitHub ↗

NewError associates an error message with a given expression id, populating the source offset location of the error if possible.

(exprID int64, message string)

Source from the content-addressed store, hash-verified

502
503// NewError associates an error message with a given expression id, populating the source offset location of the error if possible.
504func (e *exprHelper) NewError(exprID int64, message string) *common.Error {
505 return common.NewError(exprID, message, e.OffsetLocation(exprID))
506}
507
508var (
509 // Thread-safe pool of ExprHelper values to minimize alloc overhead of ExprHelper creations.

Callers

nothing calls this directly

Calls 2

OffsetLocationMethod · 0.95
NewErrorFunction · 0.92

Tested by

no test coverage detected