summaryrefslogtreecommitdiffstats
path: root/engine/exception.cpp
blob: f3bed3d6344cc6c47178ce8d5a7d1ea4c64a64e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "exception.hpp"
#include <stdio.h>

using namespace flat;

FlatException::FlatException(const char* error) : m_error(error) {}

FlatException::~FlatException() {}

char buffer[256];

const char* FlatException::what() const throw()
{
    sprintf(buffer, "%s thrown: %s", specific(), m_error);

    return &buffer[0];
}