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

Method NewError

cel/macro.go:528–530  ·  view source on GitHub ↗

NewError associates an error message with a given expression id.

(exprID int64, message string)

Source from the content-addressed store, hash-verified

526
527// NewError associates an error message with a given expression id.
528func (ah *adaptingHelper) NewError(exprID int64, message string) *Error {
529 return ah.modernHelper.NewError(exprID, message)
530}
531
532func mustAdaptToExprs(exprs []*exprpb.Expr) []ast.Expr {
533 adapted := make([]ast.Expr, len(exprs))

Callers

nothing calls this directly

Calls 1

NewErrorMethod · 0.65

Tested by

no test coverage detected