LoveBrains  1.0.0
plugin_exception.h
1 /*
2 ** plugin_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 30 11:57:56 2015 Guillaume ROBIN
8 ** Last update Fri Aug 21 13:59:46 2015 Guillaume ROBIN
9 */
10 
11 #ifndef PLUGIN_EXCEPTION_H_
12 # define PLUGIN_EXCEPTION_H_
13 
14 # include <exception>
15 
16 namespace Plugin
17 {
22  class PluginException : public std::exception
23  {
24  public:
29  PluginException(const char *message) throw();
33  virtual ~PluginException(void) throw();
34 
35  /*
36  ** Methods.
37  */
38 
43  const char *what(void) const throw();
44 
45  private:
46  char *_msg;
47  };
48 }
49 
50 #endif /* !PLUGIN_EXCEPTION_H_ */
const char * what(void) const
Return the error message.
Definition: plugin_exception.cc:30
virtual ~PluginException(void)
Destructor.
Definition: plugin_exception.cc:23
PluginException(const char *message)
Constructor.
Definition: plugin_exception.cc:18
Contains all the objects and the interfaces of the plugin management.
Define the exception used by the PluginManager class.
Definition: plugin_exception.h:22