-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathcmperr.h
29 lines (26 loc) · 905 Bytes
/
cmperr.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
#pragma once
enum
{
#undef LSC_ERROR_MSG
#define LSC_ERROR_MSG(err, name, str) name = MAKE_HR(err),
#include "perrors.h"
#undef LSC_ERROR_MSG
MWUNUSED_ENUM
};
class ParseExceptionObject
{
public:
ParseExceptionObject(HRESULT hr, LPCWSTR stringOneIn = _u(""), LPCWSTR stringTwoIn = _u(""));
~ParseExceptionObject();
HRESULT GetError() { return m_hr; }
LPCWSTR GetStringOne() { return stringOne; }
LPCWSTR GetStringTwo() { return stringTwo; }
private:
HRESULT m_hr;
BSTR stringOne;
BSTR stringTwo;
};