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

Method getFormattedErrorMessages

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

Source from the content-addressed store, hash-verified

824}
825
826JSONCPP_STRING Reader::getFormattedErrorMessages() const {
827 JSONCPP_STRING formattedMessage;
828 for (Errors::const_iterator itError = errors_.begin();
829 itError != errors_.end();
830 ++itError) {
831 const ErrorInfo& error = *itError;
832 formattedMessage +=
833 "* " + getLocationLineAndColumn(error.token_.start_) + "\n";
834 formattedMessage += " " + error.message_ + "\n";
835 if (error.extra_)
836 formattedMessage +=
837 "See " + getLocationLineAndColumn(error.extra_) + " for detail.\n";
838 }
839 return formattedMessage;
840}
841
842std::vector<Reader::StructuredError> Reader::getStructuredErrors() const {
843 std::vector<Reader::StructuredError> allErrors;

Callers 3

parseMethod · 0.80
parseAndSaveValueTreeFunction · 0.80
JSONTEST_FIXTUREFunction · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected