Salome HOME
Fix problems in sketch unit tests
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_Exception.h
1 #ifndef GeomAlgoAPI_Exception_H_
2 #define GeomAlgoAPI_Exception_H_
3
4 #include <GeomAlgoAPI.h>
5
6 #include <iostream>
7
8 /**\class GeomAlgoAPI_Exception
9  * \ingroup DataAlgo
10  * \brief Manage exceptions
11  */
12 class GeomAlgoAPI_Exception : public std::exception
13 {
14  public: 
15   /// Create an exception
16   /// \param theMessageError Error message to be displayed
17   GEOMALGOAPI_EXPORT GeomAlgoAPI_Exception(std::string theMessageError);
18   /// Destroyer 
19   GEOMALGOAPI_EXPORT ~GeomAlgoAPI_Exception() throw();
20   /// Allows to collet the error 
21   GEOMALGOAPI_EXPORT const char* what() const throw();
22  
23 private:
24   std::string myMessageError; /// Error message to be displayed.
25 };
26
27
28 #endif