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

#include <exception>

class FlatException : public std::exception
{
    const char * error;

protected:

    virtual const char * specific() const = 0;

public:

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

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

#endif