lots of details relating to MIDI file management; try to ignore ALSA sequencer MIDI...
[ardour.git] / libs / ardour / ardour / export_failed.h
index de00fba87e165cd6e8bbf00232d0f70cfa624e75..16687826b169689317f6fd8a69342156f7876dcb 100644 (file)
 
 #include <exception>
 #include <string>
-#include <pbd/error.h>
-
-#include "i18n.h"
-
-using namespace PBD;
 
 namespace ARDOUR
 {
@@ -35,24 +30,17 @@ namespace ARDOUR
 class ExportFailed : public std::exception
 {
   public:
-       ExportFailed (std::string const & reason, std::string const & description) :
-         reason (reason.c_str()),
-         description (description.c_str())
-       {
-               error << string_compose (_("Export failed: %1"), reason) << endmsg;
-       }
-       
+       ExportFailed (std::string const &);
        ~ExportFailed () throw() { }
-       
+
        const char* what() const throw()
        {
-               return description;
+               return reason;
        }
-       
+
   private:
 
        const char * reason;
-       const char * description;
 
 };