LoveBrains  1.0.0
ann_exception.h
1 /*
2 ** ann_exception.h for GANNEngine in /home/robin_f/Programming/Git/CPP/GANNEngine
3 **
4 ** Made by Guillaume ROBIN
5 ** Login <robin_f@epitech.eu>
6 **
7 ** Started on Thu Aug 20 12:09:58 2015 Guillaume ROBIN
8 ** Last update Fri Aug 21 23:10:52 2015 Guillaume ROBIN
9 */
10 
11 #ifndef ANN_EXCEPTION_H_
12 # define ANN_EXCEPTION_H_
13 
14 # include <exception>
15 
16 namespace GANN
17 {
22  class ANNException : public std::exception
23  {
24  public:
29  ANNException(const char *message) throw();
33  ~ANNException(void) throw();
34 
39  const char *what(void) const throw();
40 
41  private:
42  char *_msg;
43  };
44 }
45 
46 #endif /* !ANN_EXCEPTION_H_ */
~ANNException(void)
Destructor.
Definition: ann_exception.cc:23
Define the exception that will be used by the GANN::ANN class.
Definition: ann_exception.h:22
const char * what(void) const
Return the error message.
Definition: ann_exception.cc:30
ANNException(const char *message)
Constructor.
Definition: ann_exception.cc:18
Contains all the objects that provide the management for the genetic algorithm with neural networks...
Definition: ann_exception.h:16