4 * Created on: Apr 28, 2014
8 #include <Events_Error.h>
9 #include <Events_Loop.h>
11 Events_Error::Events_Error(char* theDescription, const void* theSender)
12 : Events_Message(Events_Error::errorID(), theSender)
14 myDescription = theDescription;
17 Events_Error::~Events_Error()
21 Events_ID Events_Error::errorID()
23 Events_Loop* aLoop = Events_Loop::loop();
24 return aLoop->eventByName("ApplicationError");
27 char* Events_Error::description() const
32 void Events_Error::send(char* theDescription, const void* theSender)
34 Events_Error anError(theDescription, theSender);
35 Events_Loop::loop()->send(anError);
38 void Events_Error::send(std::string theDescription, const void* theSender)
40 Events_Error::send((char*)theDescription.c_str(), theSender);