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

Method Is

interpreter/interpretable.go:2178–2180  ·  view source on GitHub ↗

Is returns whether two errors are interrupt errors.

(target error)

Source from the content-addressed store, hash-verified

2176
2177// Is returns whether two errors are interrupt errors.
2178func (ie InterruptError) Is(target error) bool {
2179 return target.Error() == ie.Error()
2180}
2181
2182var (
2183 // pool of var folders to reduce allocations during folds.

Callers 1

TestInterruptErrorIsFunction · 0.95

Calls 1

ErrorMethod · 0.95

Tested by 1

TestInterruptErrorIsFunction · 0.76