MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / safeParse_

Method safeParse_

src/openms/source/FORMAT/MzMLFile.cpp:105–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 }
104
105 void MzMLFile::safeParse_(const String& filename, Internal::XMLHandler* handler)
106 {
107 try
108 {
109 parse_(filename, handler);
110 }
111 catch (Exception::BaseException& e)
112 {
113 String expr;
114 expr += e.getFile();
115 expr += "@";
116 expr += e.getLine();
117 expr += "-";
118 expr += e.getFunction();
119 throw Exception::ParseError(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, expr, String("- due to that error of type ") + e.getName());
120 }
121 }
122
123 void MzMLFile::loadBuffer(const std::string& buffer, PeakMap& map)
124 {

Callers

nothing calls this directly

Calls 5

getFileMethod · 0.80
getLineMethod · 0.80
getFunctionMethod · 0.80
StringClass · 0.50
getNameMethod · 0.45

Tested by

no test coverage detected