X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FEvents%2FEvents_Error.cpp;h=1dc1012f2d17144594fecd9723a2e6f32ffb5638;hb=6e39296196ae2208bec64c011e9429abca5ab037;hp=1016816c36bc9d770a97908a9870b6fd2659af17;hpb=e367eb66410cefbc352616af8f777a6903baf286;p=modules%2Fshaper.git diff --git a/src/Events/Events_Error.cpp b/src/Events/Events_Error.cpp index 1016816c3..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 std::invalid_argument(theDescription); - } - catch (...) { - Events_Error::send( - std::string("An exception: ") + theDescription); - } + Events_Error::send( + std::string("An exception: ") + theDescription); #endif -} \ No newline at end of file +}