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

Method getStructuredErrors

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

Source from the content-addressed store, hash-verified

840}
841
842std::vector<Reader::StructuredError> Reader::getStructuredErrors() const {
843 std::vector<Reader::StructuredError> allErrors;
844 for (Errors::const_iterator itError = errors_.begin();
845 itError != errors_.end();
846 ++itError) {
847 const ErrorInfo& error = *itError;
848 Reader::StructuredError structured;
849 structured.offset_start = error.token_.start_ - begin_;
850 structured.offset_limit = error.token_.end_ - begin_;
851 structured.message = error.message_;
852 allErrors.push_back(structured);
853 }
854 return allErrors;
855}
856
857bool Reader::pushError(const Value& value, const JSONCPP_STRING& message) {
858 ptrdiff_t const length = end_ - begin_;

Callers 1

JSONTEST_FIXTUREFunction · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected