Salome HOME
Issue #273: Add copyright string
[modules/shaper.git] / src / Events / Events_Error.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 /*
4  * Events_Error.h
5  *
6  *  Created on: Apr 28, 2014
7  *      Author: sbh
8  */
9
10 #ifndef EVENTS_ERROR_H_
11 #define EVENTS_ERROR_H_
12
13 #include <Events.h>
14 #include <Events_Message.h>
15
16 #include <string>
17
18 class EVENTS_EXPORT Events_Error : public Events_Message
19 {
20   char* myDescription;  ///< pointer to the description of the error
21
22  public:
23   virtual ~Events_Error();
24
25   static Events_ID errorID();
26   char* description() const;
27   static void send(char* theDescription, const void* theSender = 0);
28   static void send(std::string theDescription, const void* theSender = 0);
29
30  protected:
31   Events_Error(char* theDescription, const void* theSender = 0);
32 };
33
34 #endif /* EVENTS_ERROR_H_ */