From 2e34bdba3942617080f2cdb8a904a9159ffc2ca9 Mon Sep 17 00:00:00 2001 From: mpv Date: Sat, 20 Feb 2016 10:32:43 +0300 Subject: [PATCH] Remove exception raising: this causes problems in SALOME --- src/Events/Events_Error.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/Events/Events_Error.cpp b/src/Events/Events_Error.cpp index ce19e7c79..1dc1012f2 100644 --- a/src/Events/Events_Error.cpp +++ b/src/Events/Events_Error.cpp @@ -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 +} -- 2.39.2