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

Method ReportErrorAtID

cel/env.go:1035–1037  ·  view source on GitHub ↗

ReportErrorAtID reports an error message with an optional set of formatting arguments. The source metadata for the expression at `id`, if present, is attached to the error report. To ensure that source metadata is attached to error reports, use NewIssuesWithSourceInfo.

(id int64, message string, args ...any)

Source from the content-addressed store, hash-verified

1033// The source metadata for the expression at `id`, if present, is attached to the error report.
1034// To ensure that source metadata is attached to error reports, use NewIssuesWithSourceInfo.
1035func (i *Issues) ReportErrorAtID(id int64, message string, args ...any) {
1036 i.errs.ReportErrorAtID(id, i.info.GetStartLocation(id), message, args...)
1037}
1038
1039// getStdEnv lazy initializes the CEL standard environment.
1040func getStdEnv() (*Env, error) {

Callers

nothing calls this directly

Calls 2

GetStartLocationMethod · 0.80
ReportErrorAtIDMethod · 0.65

Tested by

no test coverage detected