Open Source Tomb Raider Engine
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

Exception.h 509B

1234567891011121314151617181920212223242526272829
  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(const char *what);
  15. Exception(const std::string &what);
  16. static std::string getLastException();
  17. private:
  18. static std::string lastException;
  19. virtual void foo(); //!< We don't want to emit a vtable in every translation unit
  20. };
  21. #endif