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
2016-01-21 11:10:55 +01:00

24 lines
339 B
C++
Executable File

#ifndef EXCEPTION_H
#define EXCEPTION_H
#include <exception>
#include <string>
class Exception : public std::exception {
private:
/** the exception message */
std::string str;
public:
/** ctor */
Exception(const std::string& str) : str(str) {;}
const char* what() const throw() {return str.c_str();}
};
#endif // EXCEPTION_H