-// 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