LoveBrains  1.0.0
app_exception.h
Go to the documentation of this file.
1 /*
2 ** app_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 Fri Jul 31 13:29:17 2015 Guillaume ROBIN
8 ** Last update Fri Aug 21 06:49:17 2015 Guillaume ROBIN
9 */
10 
11 #ifndef APP_EXCEPTION_H_
12 # define APP_EXCEPTION_H_
13 
22 # include <exception>
23 
24 namespace App
25 {
30  class AppException : public std::exception
31  {
32  public:
37  AppException(const char *message) throw();
41  ~AppException(void) throw();
42 
47  const char *what(void) const throw();
48 
49  private:
50  char *_msg;
51  };
52 }
53 
54 #endif /* !APP_EXCEPTION_H_ */
AppException(const char *message)
Constructor.
Definition: app_exception.cc:18
Contains all the tools which compose the application.
Definition: app.h:27
~AppException(void)
Destructor.
Definition: app_exception.cc:23
const char * what(void) const
Return the error message that has been throw.
Definition: app_exception.cc:30
Define the exception for the App class.
Definition: app_exception.h:30