blob: d4f1a74707109b9b1d57d8b794559611c8e2ede8 (
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) : error(error) {}
FlatException::~FlatException() {}
char buffer[256];
const char* FlatException::what() const throw()
{
sprintf(buffer, "%s thrown: %s", specific(), error);
return &buffer[0];
}
|