forked from focus-creative-games/il2cpp_plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIl2CppError.cpp
More file actions
36 lines (30 loc) · 735 Bytes
/
Il2CppError.cpp
File metadata and controls
36 lines (30 loc) · 735 Bytes
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
30
31
32
33
34
35
36
#include "Il2CppError.h"
namespace il2cpp
{
namespace utils
{
Il2CppError::Il2CppError() : m_ErrorCode(NoError), m_Hr(0)
{
}
Il2CppError::Il2CppError(Il2CppErrorCode errorCode, const char* message) :
m_ErrorCode(errorCode), m_Message(message), m_Hr(0)
{
}
Il2CppError::Il2CppError(Il2CppErrorCode errorCode, il2cpp_hresult_t hr) :
m_ErrorCode(errorCode), m_Hr(hr)
{
}
Il2CppErrorCode Il2CppError::GetErrorCode() const
{
return m_ErrorCode;
}
std::string Il2CppError::GetErrorMessage() const
{
return m_Message;
}
il2cpp_hresult_t Il2CppError::GetHr() const
{
return m_Hr;
}
} // namespace utils
} // namespace il2cpp