Salome HOME
updated copyright message
[modules/kernel.git] / src / SALOMESDS / SALOMESDS_Exception.hxx
index c5943ae8a0c00922c81cfaacde465b63bf3c7c5c..7ccc65edb0e5e302f36050e586102e78bf276c4c 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  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
 #include "SALOMEconfig.h"
 #include CORBA_SERVER_HEADER(SALOME_Exception)
 
+#include "SALOMESDS_Defines.hxx"
+
 #include <string>
 
 namespace SALOMESDS
 {
-  class Exception : public SALOME::SALOME_Exception
+  class SALOMESDS_EXPORT Exception : public SALOME::SALOME_Exception
   {
   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