X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FEvents%2FEvents_Error.h;h=b344c6e36f9a3319939a1d351e4247158a9d9d27;hb=51f9a2d4ddb07cb536d1bfef694995b81e4079af;hp=e288f9f55e90a5e80f2f971d03541f2861ae394d;hpb=4732946855f20ff628e7e34255287082819a31f4;p=modules%2Fshaper.git diff --git a/src/Events/Events_Error.h b/src/Events/Events_Error.h index e288f9f55..b344c6e36 100644 --- a/src/Events/Events_Error.h +++ b/src/Events/Events_Error.h @@ -37,6 +37,10 @@ public: /// Allows to send an error quickly: it creates and sends the error object automatically EVENTS_EXPORT static void send(const std::string& theDescription, const void* theSender = 0); + /// Throws a C++ exception about using an empty AIS object + /// \theDescription an exception information + EVENTS_EXPORT static void throwException(const std::string& theDescription); + protected: /// Default constructor. Use "send" message for generation an error. EVENTS_EXPORT Events_Error(const std::string& theDescription, const void* theSender = 0);