Salome HOME
updated copyright message
[modules/kernel.git] / src / SALOMESDS / SALOMESDS_Exception.hxx
index d62215c74dcb49b38c63cd0b0bdb99cde3788668..7ccc65edb0e5e302f36050e586102e78bf276c4c 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2015  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA, EDF, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -34,7 +34,17 @@ namespace SALOMESDS
   {
   public:
     Exception(const std::string& reason);
+    Exception(const char *reason);
+  private:
+    void assign(const char *reason);
   };
+
+   class SALOMESDS_EXPORT NotSameException : public Exception
+   {
+   public:
+     NotSameException(const std::string& reason):Exception(reason) { }
+     NotSameException(const char *reason):Exception(reason) { }
+   };
 }
 
 #endif