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

Method getFormattedErrorMessages

external/jsoncpp/jsoncpp.cpp:1040–1054  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

parseMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected