// Exception.h: interface for the Exception class.
|
//
|
//////////////////////////////////////////////////////////////////////
|
|
#ifndef AFX_EXCEPTION_H__ADE613F5_4DFC_4D41_8773_4798F099DCE4__INCLUDED_
|
#define AFX_EXCEPTION_H__ADE613F5_4DFC_4D41_8773_4798F099DCE4__INCLUDED_
|
|
#define MAX_EXCEPTION_LENGTH 512
|
|
class Exception
|
{
|
public:
|
Exception(int errorCode, const char *str, ...);
|
virtual ~Exception();
|
int ErrorCode();
|
char * ErrorMessage();
|
private:
|
int errorCode;
|
char errorMessage[MAX_EXCEPTION_LENGTH];
|
};
|
|
#endif // !defined(AFX_EXCEPTION_H__ADE613F5_4DFC_4D41_8773_4798F099DCE4__INCLUDED_)
|