mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 01:29:21 +02:00
20 lines
349 B
C++
20 lines
349 B
C++
#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
|