diff options
Diffstat (limited to 'CPP/Common/Exception.h')
-rwxr-xr-x | CPP/Common/Exception.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/CPP/Common/Exception.h b/CPP/Common/Exception.h new file mode 100755 index 00000000..d7f86a90 --- /dev/null +++ b/CPP/Common/Exception.h @@ -0,0 +1,13 @@ +// Common/Exception.h + +#ifndef __COMMON_EXCEPTION_H +#define __COMMON_EXCEPTION_H + +struct CSystemException +{ + DWORD ErrorCode; + CSystemException(): ErrorCode(::GetLastError()) {} + CSystemException(DWORD errorCode): ErrorCode(errorCode) {} +}; + +#endif |