MCPcopy Create free account
hub / github.com/SOUI2/soui / pushError

Method pushError

third-part/jsoncpp/src/lib_json/json_reader.cpp:857–872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

855}
856
857bool Reader::pushError(const Value& value, const JSONCPP_STRING& message) {
858 ptrdiff_t const length = end_ - begin_;
859 if(value.getOffsetStart() > length
860 || value.getOffsetLimit() > length)
861 return false;
862 Token token;
863 token.type_ = tokenError;
864 token.start_ = begin_ + value.getOffsetStart();
865 token.end_ = end_ + value.getOffsetLimit();
866 ErrorInfo info;
867 info.token_ = token;
868 info.message_ = message;
869 info.extra_ = 0;
870 errors_.push_back(info);
871 return true;
872}
873
874bool Reader::pushError(const Value& value, const JSONCPP_STRING& message, const Value& extra) {
875 ptrdiff_t const length = end_ - begin_;

Callers

nothing calls this directly

Calls 3

getOffsetStartMethod · 0.80
getOffsetLimitMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected