Files
BeatDetector/exception.h
2017-07-15 15:52:05 +02:00

27 lines
322 B
C++
Executable File

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