Salome HOME
OperationPrs should not be shown if it is empty. correction of compilation on Linux.
[modules/shaper.git] / src / Events / Events_Error.cpp
index c646cbf0cae5cf598a79c395c629bbc404d22d9d..ce19e7c79815cd090bfed60fd19c76be101ef546 100644 (file)
@@ -10,7 +10,7 @@
 #include <Events_Error.h>
 #include <Events_Loop.h>
 
-//#define TROW_EMPTY_AIS_EXCEPTION
+#define THROW_EMPTY_AIS_EXCEPTION
 
 Events_Error::Events_Error(const std::string& theDescription, const void* theSender)
     : Events_Message(Events_Error::errorID(), theSender)
@@ -42,9 +42,9 @@ void Events_Error::send(const std::string& theDescription, const void* theSender
 
 void Events_Error::throwException(const std::string& theDescription)
 {
-#ifdef TROW_EMPTY_AIS_EXCEPTION
+#ifdef THROW_EMPTY_AIS_EXCEPTION
   try {
-    throw std::invalid_argument(theDescription);
+    throw;
   }
   catch (...) {
     Events_Error::send(