Open Source Tomb Raider Engine
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

Exception.cpp 404B

12345678910111213141516171819202122
  1. /*!
  2. * \file src/Exception.cpp
  3. * \brief Custom global Exception
  4. *
  5. * \author xythobuz
  6. */
  7. #include "global.h"
  8. #include "Exception.h"
  9. std::string Exception::lastException("No custom exception since start!");
  10. Exception::Exception(std::string what) : runtime_error(what) {
  11. lastException = what;
  12. }
  13. std::string Exception::getLastException() {
  14. return lastException;
  15. }
  16. void Exception::foo() { }