Mercurial > hg > svcore
changeset 599:f3211e01b315
* use exceptions instead of exit()!
author | Chris Cannam |
---|---|
date | Tue, 07 Jul 2009 10:54:10 +0000 |
parents | 939ffbc32d50 |
children | 3f6d9930bc28 |
files | rdf/RDFFeatureWriter.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rdf/RDFFeatureWriter.cpp Tue Jul 07 10:51:50 2009 +0000 +++ b/rdf/RDFFeatureWriter.cpp Tue Jul 07 10:54:10 2009 +0000 @@ -18,6 +18,8 @@ #include "vamp-hostsdk/PluginHostAdapter.h" #include "vamp-hostsdk/PluginLoader.h" +#include "base/Exceptions.h" + #include "RDFFeatureWriter.h" #include "RDFTransformFactory.h" #include "PluginRDFIndexer.h" @@ -159,7 +161,7 @@ std::cerr << "RDFFeatureWriter::write: ERROR: No output stream for track id \"" << trackId.toStdString() << "\" and transform \"" << transform.getIdentifier().toStdString() << "\"" << std::endl; - exit(1); + throw FileOperationFailed("", "output stream write"); } if (m_startedStreamTransforms.find(stream) ==