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

Function NewError

common/error.go:24–26  ·  view source on GitHub ↗

NewError creates an error associated with an expression id with the given message at the given location.

(id int64, message string, location Location)

Source from the content-addressed store, hash-verified

22
23// NewError creates an error associated with an expression id with the given message at the given location.
24func NewError(id int64, message string, location Location) *Error {
25 return &Error{Message: message, Location: location, ExprID: id}
26}
27
28// Error type which references an expression id, a location within source, and a message.
29type Error struct {

Callers 2

NewErrorMethod · 0.92
toParserHelperFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected