diff rdf/RDFFeatureWriter.cpp @ 599:f3211e01b315

* use exceptions instead of exit()!
author Chris Cannam
date Tue, 07 Jul 2009 10:54:10 +0000
parents 4fa2b135acbc
children 02d9664906e8
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) ==