LoveBrains  1.0.0
ga_engine_exception.h
1 /*
2 ** ga_engine_exception.h for GAEngine in /home/robin_f/Programming/Git/CPP/GAEngine
3 **
4 ** Made by Guillaume ROBIN
5 ** Login <robin_f@epitech.eu>
6 **
7 ** Started on Tue Jul 21 14:18:49 2015 Guillaume ROBIN
8 ** Last update Fri Aug 21 17:14:31 2015 Guillaume ROBIN
9 */
10 
11 #ifndef GA_ENGINE_EXCEPTION_H_
12 # define GA_ENGINE_EXCEPTION_H_
13 
14 # include <exception>
15 
16 namespace GA
17 {
22  class GAEngineException : public std::exception
23  {
24  public:
29  GAEngineException(const char *msg) throw();
33  ~GAEngineException(void) throw();
34 
39  const char *what(void) const throw();
40 
41  private:
42  char *_msg;
43  };
44 }
45 
46 #endif /* !GA_ENGINE_EXCEPTION_H_ */
~GAEngineException(void)
Destructor.
Definition: ga_engine_exception.cc:23
Define the exception that will be used by the GAEngine.
Definition: ga_engine_exception.h:22
Contains the objects that define the GAEngine.
GAEngineException(const char *msg)
Constructor.
Definition: ga_engine_exception.cc:18
const char * what(void) const
Return the current error message.
Definition: ga_engine_exception.cc:30