blob: 8dd70d66b567b97e688a82dd10bae329b4a7733c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "exception.hpp"
#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];
}
|