You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
349 B
20 lines
349 B
#ifndef EXCEPTION_H
|
|
#define EXCEPTION_H
|
|
|
|
#include <exception>
|
|
|
|
class Exception : public std::exception
|
|
{
|
|
public:
|
|
Exception() { }
|
|
Exception(const std::string& what) : m_what(what) { }
|
|
virtual ~Exception() throw() { };
|
|
|
|
virtual const char* what() const throw() { return m_what.c_str(); }
|
|
|
|
protected:
|
|
std::string m_what;
|
|
};
|
|
|
|
#endif
|