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.
1234567891011121314151617181920212223242526 |
- /*!
- * \file src/Exception.cpp
- * \brief Custom global Exception
- *
- * \author xythobuz
- */
-
- #include "global.h"
- #include "Exception.h"
-
- std::string Exception::lastException("No custom exception since start!");
-
- Exception::Exception(const char* what) : runtime_error(what) {
- lastException = what;
- }
-
- Exception::Exception(const std::string& what) : runtime_error(what) {
- lastException = what;
- }
-
- std::string Exception::getLastException() {
- return lastException;
- }
-
- void Exception::foo() { }
|