Exception.h revision 10447
1#ifndef __EXCEPTION_H__
2#define __EXCEPTION_H__
3
4#include <exception>
5
6#include "String.h"
7
8namespace LibUtil
9{
10    using std::exception;
11
12    // Exception class handles the all exception messages in the program
13    class Exception : public exception
14    {
15        public:
16            // All constructors/destructors/functions in this class don't throw any events
17            Exception(const String& exception_msg_) throw();
18            ~Exception() throw();
19
20            // Derived from std::exception class that returns a null-terminated char string
21            const char* what() const throw();
22
23        private:
24            String mExceptionMsg;
25    };
26}
27
28#endif // __EXCEPTION_H__
29
30