MCPcopy Create free account
hub / github.com/Samsung/UTopia / pushError

Method pushError

external/jsoncpp/jsoncpp.cpp:1050–1064  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1048}
1049
1050bool Reader::pushError(const Value &value, const String &message) {
1051 ptrdiff_t const length = end_ - begin_;
1052 if (value.getOffsetStart() > length || value.getOffsetLimit() > length)
1053 return false;
1054 Token token;
1055 token.type_ = tokenError;
1056 token.start_ = begin_ + value.getOffsetStart();
1057 token.end_ = end_ + value.getOffsetLimit();
1058 ErrorInfo info;
1059 info.token_ = token;
1060 info.message_ = message;
1061 info.extra_ = nullptr;
1062 errors_.push_back(info);
1063 return true;
1064}
1065
1066bool Reader::pushError(const Value &value, const String &message,
1067 const Value &extra) {

Callers

nothing calls this directly

Calls 2

getOffsetStartMethod · 0.80
getOffsetLimitMethod · 0.80

Tested by

no test coverage detected