Salome HOME
Issue #1860: fix end lines with spaces
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_Exception.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 #ifndef GeomAlgoAPI_Exception_H_
4 #define GeomAlgoAPI_Exception_H_
5
6 #include <GeomAlgoAPI.h>
7
8 #include <iostream>
9
10 /**\class GeomAlgoAPI_Exception
11  * \ingroup DataAlgo
12  * \brief Manage exceptions
13  */
14 class GeomAlgoAPI_Exception : public std::exception
15 {
16  public:
17   /// Create an exception
18   /// \param theMessageError Error message to be displayed
19   GEOMALGOAPI_EXPORT GeomAlgoAPI_Exception(std::string theMessageError);
20   /// Destroyer
21   GEOMALGOAPI_EXPORT ~GeomAlgoAPI_Exception() throw();
22   /// Allows to collet the error
23   GEOMALGOAPI_EXPORT const char* what() const throw();
24
25 private:
26   std::string myMessageError; /// Error message to be displayed.
27 };
28
29
30 #endif