summaryrefslogtreecommitdiffstats
path: root/engine/include/exception.hpp
blob: 6f578e819b6dc28127aec1de4728a0193a0c28b4 (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
#ifndef __FLAT_ERROR_H__
#define __FLAT_ERROR_H__

#include <exception>

namespace flat {

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