aboutsummaryrefslogtreecommitdiff
path: root/Exception.h
blob: 31c517ba5bf76277c27067db5c9bc1c58a1ecc77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include <cstdarg>
#include <exception>

class Exception : public std::exception {
public:
	Exception(const char * fmt, ...);
	virtual ~Exception();
	virtual const char * what();

protected:
	Exception() = default;
	void va_format(va_list args, const char * fmt);
	char * error = NULL;
};