blob: 633cb4fd463f6736381a7092760a50aca4c33c93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#pragma once
#include <cstdarg>
#include <exception>
#include <memory>
class Exception : public std::exception {
public:
Exception(const char * fmt, ...);
const char * what();
protected:
Exception() = default;
void va_format(va_list args, const char * fmt);
std::unique_ptr<char> error = NULL;
};
|