]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Remove exception raising: this causes problems in SALOME
authormpv <mpv@opencascade.com>
Sat, 20 Feb 2016 07:32:43 +0000 (10:32 +0300)
committermpv <mpv@opencascade.com>
Sat, 20 Feb 2016 07:32:43 +0000 (10:32 +0300)
src/Events/Events_Error.cpp

index ce19e7c79815cd090bfed60fd19c76be101ef546..1dc1012f2d17144594fecd9723a2e6f32ffb5638 100644 (file)
@@ -43,12 +43,7 @@ void Events_Error::send(const std::string& theDescription, const void* theSender
 void Events_Error::throwException(const std::string& theDescription)
 {
 #ifdef THROW_EMPTY_AIS_EXCEPTION
-  try {
-    throw;
-  }
-  catch (...) {
-    Events_Error::send(
-        std::string("An exception: ") + theDescription);
-  }
+  Events_Error::send(
+      std::string("An exception: ") + theDescription);
 #endif
-}
\ No newline at end of file
+}