MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / getFormattedErrorMessages

Method getFormattedErrorMessages

src/jsoncpp.cpp:1025–1040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1023}
1024
1025std::string Reader::getFormattedErrorMessages() const {
1026 std::string formattedMessage;
1027 for (Errors::const_iterator itError = errors_.begin();
1028 itError != errors_.end();
1029 ++itError) {
1030 const ErrorInfo& error = *itError;
1031 formattedMessage +=
1032 "* " + getLocationLineAndColumn(error.token_.start_) + "\n";
1033 formattedMessage += getLocationSnippet(error.token_.start_) + "\n";
1034 formattedMessage += " " + error.message_ + "\n";
1035 if (error.extra_)
1036 formattedMessage +=
1037 "See " + getLocationLineAndColumn(error.extra_) + " for detail.\n";
1038 }
1039 return formattedMessage;
1040}
1041
1042std::vector<Reader::StructuredError> Reader::getStructuredErrors() const {
1043 std::vector<Reader::StructuredError> allErrors;

Callers 1

parseMethod · 0.80

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected