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

Function CreateErrorValue

eval/public/cel_value.cc:289–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287CelValue CelValue::CreateMap() { return CreateMap(EmptyCelMap::Get()); }
288
289CelValue CreateErrorValue(cel::MemoryManagerRef manager,
290 absl::string_view message,
291 absl::StatusCode error_code) {
292 // TODO(uncreated-issue/1): assume arena-style allocator while migrating to new
293 // value type.
294 Arena* arena = cel::extensions::ProtoMemoryManagerArena(manager);
295 return CreateErrorValue(arena, message, error_code);
296}
297
298CelValue CreateErrorValue(cel::MemoryManagerRef manager,
299 const absl::Status& status) {

Callers 15

operator[]Method · 0.85
operator[]Method · 0.85
TESTFunction · 0.85
BetweenStrFunction · 0.85
GetDateFunction · 0.85
GetTimeOfDayFunction · 0.85
BetweenToDFunction · 0.85
BetweenToDStrFunction · 0.85
TypeExamplesFunction · 0.85
TESTFunction · 0.85
operator[]Method · 0.85
operator[]Method · 0.85

Calls 1

CreateErrorFunction · 0.50

Tested by 4

TESTFunction · 0.68
TypeExamplesFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68