MCPcopy Create free account
hub / github.com/Snapchat/Valdi / onPopulateFieldError

Function onPopulateFieldError

valdi_protobuf/src/valdi_protobuf/Message.cpp:416–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414}
415
416static bool onPopulateFieldError(const google::protobuf::FieldDescriptor& fieldDescriptor,
417 std::string_view errorMessage,
418 ExceptionTracker& exceptionTracker) {
419 exceptionTracker.onError(fmt::format("{} on field {}", errorMessage, fieldDescriptor.full_name()));
420 return false;
421}
422
423bool Message::postprocessForField(const google::protobuf::FieldDescriptor& fieldDescriptor,
424 Field& fieldValue,

Callers 1

postprocessForFieldMethod · 0.85

Calls 1

onErrorMethod · 0.65

Tested by

no test coverage detected