MCPcopy Create free account
hub / github.com/ValveSoftware/Proton / pushError

Method pushError

vrclient_x64/jsoncpp.cpp:1056–1071  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1054}
1055
1056bool Reader::pushError(const Value& value, const std::string& message) {
1057 size_t length = end_ - begin_;
1058 if(value.getOffsetStart() > length
1059 || value.getOffsetLimit() > length)
1060 return false;
1061 Token token;
1062 token.type_ = tokenError;
1063 token.start_ = begin_ + value.getOffsetStart();
1064 token.end_ = end_ + value.getOffsetLimit();
1065 ErrorInfo info;
1066 info.token_ = token;
1067 info.message_ = message;
1068 info.extra_ = 0;
1069 errors_.push_back(info);
1070 return true;
1071}
1072
1073bool Reader::pushError(const Value& value, const std::string& message, const Value& extra) {
1074 size_t length = end_ - begin_;

Callers

nothing calls this directly

Calls 2

getOffsetStartMethod · 0.80
getOffsetLimitMethod · 0.80

Tested by

no test coverage detected