Open Source Tomb Raider Engine
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Exception.h 473B

12345678910111213141516171819202122232425262728
  1. /*!
  2. * \file include/Exception.h
  3. * \brief Custom global Exception
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _EXCEPTION_H_
  8. #define _EXCEPTION_H_
  9. #include <memory>
  10. #include <stdexcept>
  11. #include <string>
  12. class Exception : std::runtime_error {
  13. public:
  14. Exception(std::string what);
  15. static std::string getLastException();
  16. private:
  17. static std::string lastException;
  18. virtual void foo(); //!< We don't want to emit a vtable in every translation unit
  19. };
  20. #endif