X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FEvents%2FEvents_Error.cpp;h=1dc1012f2d17144594fecd9723a2e6f32ffb5638;hb=6e39296196ae2208bec64c011e9429abca5ab037;hp=c646cbf0cae5cf598a79c395c629bbc404d22d9d;hpb=5cd5c63e95c048ef98621e15929c1e95ad580b24;p=modules%2Fshaper.git diff --git a/src/Events/Events_Error.cpp b/src/Events/Events_Error.cpp index c646cbf0c..1dc1012f2 100644 --- a/src/Events/Events_Error.cpp +++ b/src/Events/Events_Error.cpp @@ -10,7 +10,7 @@ #include #include -//#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,13 +42,8 @@ void Events_Error::send(const std::string& theDescription, const void* theSender void Events_Error::throwException(const std::string& theDescription) { -#ifdef TROW_EMPTY_AIS_EXCEPTION - try { - throw std::invalid_argument(theDescription); - } - catch (...) { - Events_Error::send( - std::string("An exception: ") + theDescription); - } +#ifdef THROW_EMPTY_AIS_EXCEPTION + Events_Error::send( + std::string("An exception: ") + theDescription); #endif -} \ No newline at end of file +}