| //------------------------------------------------------------------------------------------------------- |
| // 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; |
| }; |