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

Method getStructuredErrors

vrclient_x64/jsoncpp.cpp:1041–1054  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1039}
1040
1041std::vector<Reader::StructuredError> Reader::getStructuredErrors() const {
1042 std::vector<Reader::StructuredError> allErrors;
1043 for (Errors::const_iterator itError = errors_.begin();
1044 itError != errors_.end();
1045 ++itError) {
1046 const ErrorInfo& error = *itError;
1047 Reader::StructuredError structured;
1048 structured.offset_start = error.token_.start_ - begin_;
1049 structured.offset_limit = error.token_.end_ - begin_;
1050 structured.message = error.message_;
1051 allErrors.push_back(structured);
1052 }
1053 return allErrors;
1054}
1055
1056bool Reader::pushError(const Value& value, const std::string& message) {
1057 size_t length = end_ - begin_;

Callers

nothing calls this directly

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected