This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Indoor/Exception.h
frank 857d7a1553 fixed some issues
added new pose/turn detections
new helper classes
define-flags for libEigen
2018-09-04 10:49:00 +02:00

39 lines
668 B
C++
Executable File

#ifndef EXCEPTION_H
#define EXCEPTION_H
#include <exception>
#include <string>
#ifdef ANDROID
//include <QMessageBox>
#include <QtDebug>
#endif
class Exception : public std::exception {
private:
/** the exception message */
std::string str;
public:
/** ctor */
Exception(const std::string& str) : str(str) {
// TODO better solution?
#ifdef ANDROID
qDebug() << "-------- ERROR --------";
qDebug() << str.c_str();
qDebug() << "------------------------";
//QMessageBox::question(nullptr, "Exception", str.c_str(), QMessageBox::Ok);
#endif
}
const char* what() const throw() {return str.c_str();}
};
#endif // EXCEPTION_H