Open Source Tomb Raider Engine
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Exception.cpp 503B

1234567891011121314151617181920212223242526
  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(const char *what) : runtime_error(what) {
  11. lastException = what;
  12. }
  13. Exception::Exception(const std::string &what) : runtime_error(what) {
  14. lastException = what;
  15. }
  16. std::string Exception::getLastException() {
  17. return lastException;
  18. }
  19. void Exception::foo() { }