| 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 | { |
nothing calls this directly
no test coverage detected