aboutsummaryrefslogtreecommitdiff
path: root/Exception.h
blob: ef455227145a0adf29a9ea8e445b6869f42a1e0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <exception>

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

private:
	char * error = NULL;
};

class ParserException : public Exception {
public:
	ParserException(const char * fmt, ...) : Exception(fmt) {}
};

class CircuitException : public Exception {
public:
	CircuitException(const char * fmt, ...) : Exception(fmt) {}
};