MCPcopy Create free account
hub / github.com/Illumina/hap.py / getFormattedErrorMessages

Method getFormattedErrorMessages

external/jsoncpp/jsoncpp.cpp:986–1000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

984}
985
986std::string Reader::getFormattedErrorMessages() const {
987 std::string formattedMessage;
988 for (Errors::const_iterator itError = errors_.begin();
989 itError != errors_.end();
990 ++itError) {
991 const ErrorInfo &error = *itError;
992 formattedMessage +=
993 "* " + getLocationLineAndColumn(error.token_.start_) + "\n";
994 formattedMessage += " " + error.message_ + "\n";
995 if (error.extra_)
996 formattedMessage +=
997 "See " + getLocationLineAndColumn(error.extra_) + " for detail.\n";
998 }
999 return formattedMessage;
1000}
1001
1002std::vector<Reader::StructuredError> Reader::getStructuredErrors() const {
1003 std::vector<Reader::StructuredError> allErrors;

Callers 1

jsoncpp.cppFile · 0.80

Calls 2

beginMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected