blob: be876d7006ff998c356d31900ef73b042b4ec386 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef EXCEPTION_H
#define EXCEPTION_H
#include <string>
#include <exception>
class Exception : public std::exception
{
public:
Exception( const char *sFormat, ... ) throw();
Exception( int nCode, const char *sFormat, ... ) throw();
virtual ~Exception() throw();
virtual const char *what() const throw();
int getErrorCode();
private:
char *sWhat;
int nErrorCode;
};
#endif
|