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

Method Err

cel/env.go:1084–1092  ·  view source on GitHub ↗

Err returns an error value if the issues list contains one or more errors.

()

Source from the content-addressed store, hash-verified

1082
1083// Err returns an error value if the issues list contains one or more errors.
1084func (i *Issues) Err() error {
1085 if i == nil {
1086 return nil
1087 }
1088 if len(i.Errors()) > 0 {
1089 return errors.New(i.String())
1090 }
1091 return nil
1092}
1093
1094// Errors returns the collection of errors encountered in more granular detail.
1095func (i *Issues) Errors() []*Error {

Callers 15

OptimizeMethod · 0.95
TestIssuesNilFunction · 0.95
TestIssuesEmptyFunction · 0.95
evalMethod · 0.80
CreateASTMethod · 0.80
CreateASTMethod · 0.80
TestParseFunction · 0.80
TestParseErrorFunction · 0.80
TestCustomTagVisitorFunction · 0.80
TestSimpleVariablesFunction · 0.80
ParseMethod · 0.80
TestCompose_SourceInfoFunction · 0.80

Calls 3

ErrorsMethod · 0.95
StringMethod · 0.95
NewMethod · 0.80

Tested by 15

TestIssuesNilFunction · 0.76
TestIssuesEmptyFunction · 0.76
TestParseFunction · 0.64
TestParseErrorFunction · 0.64
TestCustomTagVisitorFunction · 0.64
TestSimpleVariablesFunction · 0.64
TestCompose_SourceInfoFunction · 0.64
TestCompose_UnnestFunction · 0.64
TestCompileFunction · 0.64
TestRuleComposerUnnestFunction · 0.64
TestCompileErrorFunction · 0.64