LoveBrains  1.0.0
population_exception.h
1 /*
2 ** population_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 13:40:21 2015 Guillaume ROBIN
8 ** Last update Fri Aug 21 22:44:33 2015 Guillaume ROBIN
9 */
10 
11 #ifndef POPULATION_EXCEPTION_H_
12 # define POPULATION_EXCEPTION_H_
13 
14 # include <exception>
15 
16 namespace GA
17 {
22  class PopulationException : public std::exception
23  {
24  public:
29  PopulationException(const char *message) throw();
33  ~PopulationException(void) throw();
34 
39  const char *what(void) const throw();
40 
41  private:
42  char *_msg;
43  };
44 }
45 
46 #endif /* !POPULATION_EXCEPTION_H_ */
Define the exception that will be used by the Population class.
Definition: population_exception.h:22
Contains the objects that define the GAEngine.
~PopulationException(void)
Destructor.
Definition: population_exception.cc:23
const char * what(void) const
Return the error message.
Definition: population_exception.cc:30
PopulationException(const char *message)
Constructor.
Definition: population_exception.cc:18