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

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

FlatException::~FlatException() {}

char buffer[256];

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

    return &buffer[0];
}