MCPcopy Create free account
hub / github.com/Illumina/paragraph / getStructuredErrors

Method getStructuredErrors

external/jsoncpp/jsoncpp.cpp:1056–1069  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1054}
1055
1056std::vector<Reader::StructuredError> Reader::getStructuredErrors() const {
1057 std::vector<Reader::StructuredError> allErrors;
1058 for (Errors::const_iterator itError = errors_.begin();
1059 itError != errors_.end();
1060 ++itError) {
1061 const ErrorInfo& error = *itError;
1062 Reader::StructuredError structured;
1063 structured.offset_start = error.token_.start_ - begin_;
1064 structured.offset_limit = error.token_.end_ - begin_;
1065 structured.message = error.message_;
1066 allErrors.push_back(structured);
1067 }
1068 return allErrors;
1069}
1070
1071bool Reader::pushError(const Value& value, const JSONCPP_STRING& message) {
1072 ptrdiff_t const length = end_ - begin_;

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected