MCPcopy Create free account
hub / github.com/cinder/Cinder / getFormattedErrorMessages

Method getFormattedErrorMessages

src/jsoncpp/jsoncpp.cpp:1001–1015  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

999}
1000
1001std::string Reader::getFormattedErrorMessages() const {
1002 std::string formattedMessage;
1003 for (Errors::const_iterator itError = errors_.begin();
1004 itError != errors_.end();
1005 ++itError) {
1006 const ErrorInfo& error = *itError;
1007 formattedMessage +=
1008 "* " + getLocationLineAndColumn(error.token_.start_) + "\n";
1009 formattedMessage += " " + error.message_ + "\n";
1010 if (error.extra_)
1011 formattedMessage +=
1012 "See " + getLocationLineAndColumn(error.extra_) + " for detail.\n";
1013 }
1014 return formattedMessage;
1015}
1016
1017std::vector<Reader::StructuredError> Reader::getStructuredErrors() const {
1018 std::vector<Reader::StructuredError> allErrors;

Callers 2

jsoncpp.cppFile · 0.80
deserializeNativeMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected