MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / IsMissingAttributeError

Function IsMissingAttributeError

eval/public/cel_value.cc:377–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377bool IsMissingAttributeError(const CelValue& value) {
378 const CelError* error;
379 if (!value.GetValue(&error)) return false;
380 if (error && error->code() == absl::StatusCode::kInvalidArgument) {
381 auto path = error->GetPayload(
382 cel::runtime_internal::kPayloadUrlMissingAttributePath);
383 return path.has_value();
384 }
385 return false;
386}
387
388CelValue CreateUnknownFunctionResultError(cel::MemoryManagerRef manager,
389 absl::string_view help_message) {

Callers 1

TESTFunction · 0.85

Calls 3

codeMethod · 0.80
GetValueMethod · 0.45
has_valueMethod · 0.45

Tested by 1

TESTFunction · 0.68