summaryrefslogtreecommitdiffstats
path: root/engine/include/exception.hpp
blob: 5648df8d564437f5c0372245046d45dbf6136add (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef __FLAT_ERROR_H__
#define __FLAT_ERROR_H__

#include <exception>

namespace flat {

class FlatException : public std::exception
{
private:
    const char * m_error;

protected:

    virtual const char * specific() const = 0;

public:

    FlatException(const char* error);
    virtual ~FlatException();

    virtual const char* what() const throw() override;
};

}

#endif