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

Method prependError

valdi_core/src/valdi_core/cpp/Utils/TextParser.cpp:299–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299void TextParser::prependError(std::string_view errorMessage) {
300 SC_ASSERT(hasError());
301 _error->error = _error->error.rethrow(StringCache::getGlobal().makeString(errorMessage));
302}
303
304Error TextParser::makeParseError(std::string_view str, std::string_view sourceErrorMessage, size_t position) {
305 SC_ASSERT(position <= str.size());

Callers 2

parseMethod · 0.80
parseErrorFunction · 0.80

Calls 3

getGlobalFunction · 0.85
rethrowMethod · 0.80
makeStringMethod · 0.80

Tested by

no test coverage detected