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