Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Exception.h « Common « CPP - github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d7f86a9040c2d6f7f0146644d1a0b337e0f9aa1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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