LoveBrains  1.0.0
gann_exception.h
1 /*
2 ** gann_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 Mon Jul 13 10:38:18 2015 Guillaume ROBIN
8 ** Last update Fri Aug 21 23:07:55 2015 Guillaume ROBIN
9 */
10 
11 #ifndef GANN_EXCEPTION_H_
12 # define GANN_EXCEPTION_H_
13 
14 #include <exception>
15 #include <iostream>
16 
17 namespace GANN
18 {
23  class GANNException : std::exception
24  {
25  public:
30  GANNException(const char *msg);
34  virtual ~GANNException(void) throw();
35 
40  virtual const char *what(void) const throw();
41 
42  private:
43  char *_msg;
44  };
45 }
46 
47 #endif /* !GANN_EXCEPTION_H_ */
virtual const char * what(void) const
Return the error message.
Definition: gann_exception.cc:30
GANNException(const char *msg)
Constructor.
Definition: gann_exception.cc:18
Contains all the objects that provide the management for the genetic algorithm with neural networks...
Definition: ann_exception.h:16
Define the exception that will be used by the GANNEngine class.
Definition: gann_exception.h:23
virtual ~GANNException(void)
Destructor.
Definition: gann_exception.cc:23