Salome HOME
crash fix: mirror (line, axis of sketch), select with rectangle, delete
[modules/shaper.git] / src / Events / Events_Error.h
index e288f9f55e90a5e80f2f971d03541f2861ae394d..b344c6e36f9a3319939a1d351e4247158a9d9d27 100644 (file)
@@ -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);