1234567891011121314151617181920212223242526272829 |
-
-
- #ifndef _EXCEPTION_H_
- #define _EXCEPTION_H_
-
- #include <memory>
- #include <stdexcept>
- #include <string>
-
- class Exception : std::runtime_error {
- public:
- Exception(const char *what);
- Exception(const std::string &what);
-
- static std::string getLastException();
-
- private:
- static std::string lastException;
-
- virtual void foo();
- };
-
- #endif
|