MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / getFormattedErrorMessages

Method getFormattedErrorMessages

src/share/jsoncpp/jsoncpp.cpp:1044–1058  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1042}
1043
1044JSONCPP_STRING Reader::getFormattedErrorMessages() const {
1045 JSONCPP_STRING formattedMessage;
1046 for (Errors::const_iterator itError = errors_.begin();
1047 itError != errors_.end();
1048 ++itError) {
1049 const ErrorInfo& error = *itError;
1050 formattedMessage +=
1051 "* " + getLocationLineAndColumn(error.token_.start_) + "\n";
1052 formattedMessage += " " + error.message_ + "\n";
1053 if (error.extra_)
1054 formattedMessage +=
1055 "See " + getLocationLineAndColumn(error.extra_) + " for detail.\n";
1056 }
1057 return formattedMessage;
1058}
1059
1060std::vector<Reader::StructuredError> Reader::getStructuredErrors() const {
1061 std::vector<Reader::StructuredError> allErrors;

Callers 1

parseMethod · 0.80

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected