Skip to content
Snippets Groups Projects
Commit 9909ecd0 authored by Langella Olivier's avatar Langella Olivier
Browse files

catch exception when running tandem wrapper and display it

parent 6091a6ab
No related branches found
No related tags found
No related merge requests found
......@@ -186,14 +186,14 @@ TandemBatchProcess::run()
try
{
m_centroid_timstof_option =
new_param.getValue("spectrum, timstof MS2 centroid parameters");
// m_centroid_timstof_option =
// new_param.getValue("spectrum, timstof MS2 centroid parameters");
}
catch(pappso::ExceptionNotFound &error)
{
// if centroid parameters are not in preset :
// no error has to be sent, this is a normal preset
m_centroid_timstof_option = "";
// m_centroid_timstof_option = "";
}
prepareXmlDatabaseFile();
......@@ -432,14 +432,21 @@ TandemBatchProcess::runOne(const QString &mz_file)
<< "Oops! an error occurred in PAPPSO MS tools. Dont Panic :"
<< endl;
errorStream << error.qwhat() << endl;
throw pappso::PappsoException(
QObject::tr("error executing pappso::TandemWrapperRun :\n%1")
.arg(error.qwhat()));
}
catch(std::exception &error)
{
errorStream
<< "Oops! an error occurred in PAPPSO MS tools. Dont Panic :"
<< "Oops! an std error occurred in PAPPSO MS tools. Dont Panic :"
<< endl;
errorStream << error.what() << endl;
throw pappso::PappsoException(
QObject::tr("error executing pappso::TandemWrapperRun :\n%1")
.arg(error.what()));
}
}
}
......@@ -60,6 +60,5 @@ class TandemBatchProcess
private:
QTemporaryFile _tmp_database_file;
QString m_centroid_timstof_option;
MainWindow *_p_main_window = nullptr;
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment