MCPcopy Create free account
hub / github.com/Kitware/VTK / getFormattedErrorMessages

Method getFormattedErrorMessages

ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:1028–1039  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1026}
1027
1028String Reader::getFormattedErrorMessages() const {
1029 String formattedMessage;
1030 for (const auto& error : errors_) {
1031 formattedMessage +=
1032 "* " + getLocationLineAndColumn(error.token_.start_) + "\n";
1033 formattedMessage += " " + error.message_ + "\n";
1034 if (error.extra_)
1035 formattedMessage +=
1036 "See " + getLocationLineAndColumn(error.extra_) + " for detail.\n";
1037 }
1038 return formattedMessage;
1039}
1040
1041std::vector<Reader::StructuredError> Reader::getStructuredErrors() const {
1042 std::vector<Reader::StructuredError> allErrors;

Callers 1

parseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected