forked from UnigramDev/Unigram
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFatalError.h
More file actions
51 lines (42 loc) · 1.16 KB
/
Copy pathFatalError.h
File metadata and controls
51 lines (42 loc) · 1.16 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#pragma once
#include "FatalError.g.h"
namespace winrt::Telegram::Native::implementation
{
struct FatalError : FatalErrorT<FatalError>
{
FatalError(int32_t resultCode, hstring message, hstring stackTrace, winrt::Windows::Foundation::Collections::IVector<FatalErrorFrame> frames)
: m_resultCode(resultCode)
, m_message(message)
, m_stackTrace(stackTrace)
, m_frames(frames)
{
}
int32_t ResultCode()
{
return m_resultCode;
}
hstring Message()
{
return m_message;
}
hstring StackTrace()
{
return m_stackTrace;
}
winrt::Windows::Foundation::Collections::IVector<FatalErrorFrame> Frames()
{
return m_frames;
}
private:
int32_t m_resultCode;
hstring m_message;
hstring m_stackTrace;
winrt::Windows::Foundation::Collections::IVector<FatalErrorFrame> m_frames;
};
}
namespace winrt::Telegram::Native::factory_implementation
{
struct FatalError : FatalErrorT<FatalError, implementation::FatalError>
{
};
}