X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FEvents%2FEvents_Error.cpp;h=1dc1012f2d17144594fecd9723a2e6f32ffb5638;hb=6e39296196ae2208bec64c011e9429abca5ab037;hp=4b7670e8ef55e1c54794c6880b01b4191151c7ed;hpb=1e2e22b2b252398b996013458bdeddd78b0cff42;p=modules%2Fshaper.git diff --git a/src/Events/Events_Error.cpp b/src/Events/Events_Error.cpp index 4b7670e8e..1dc1012f2 100644 --- a/src/Events/Events_Error.cpp +++ b/src/Events/Events_Error.cpp @@ -10,6 +10,8 @@ #include #include +#define THROW_EMPTY_AIS_EXCEPTION + Events_Error::Events_Error(const std::string& theDescription, const void* theSender) : Events_Message(Events_Error::errorID(), theSender) { @@ -37,3 +39,11 @@ void Events_Error::send(const std::string& theDescription, const void* theSender std::shared_ptr(new Events_Error(theDescription, theSender)); Events_Loop::loop()->send(aNewOne); } + +void Events_Error::throwException(const std::string& theDescription) +{ +#ifdef THROW_EMPTY_AIS_EXCEPTION + Events_Error::send( + std::string("An exception: ") + theDescription); +#endif +}