Alternate
e697dbe9c5997e35395fe158628dd8c5209481da
for Visual Studio 2022 and Windows 11.
読み取り中…
検索中…
一致する文字列を見つけられません
Exception.cpp
[詳解]
1
// ----------------------------------------------------------------------------
6
7
#include "
pch.h
"
8
#include "
Exception.h
"
9
10
using namespace
alt::ex
;
11
12
// ----------------------------------------------------------------------------
13
Exception::Exception
()
14
{}
15
16
Exception::~Exception
()
17
{}
18
19
LPCTSTR
Exception::GetReason
()
const
20
{
21
return
ALT_REASON_EXCEPTION
;
22
}
23
24
// ----------------------------------------------------------------------------
25
InvalidArgumentException::InvalidArgumentException
()
26
{}
27
28
InvalidArgumentException::~InvalidArgumentException
()
29
{}
30
31
LPCTSTR
InvalidArgumentException::GetReason
()
const
32
{
33
return
ALT_REASON_INVALID_ARGUMENT
;
34
}
35
36
// ----------------------------------------------------------------------------
37
RuntimeException::RuntimeException
()
38
{}
39
40
RuntimeException::~RuntimeException
()
41
{}
42
43
LPCTSTR
RuntimeException::GetReason
()
const
44
{
45
return
ALT_REASON_RUNTIME_ERROR
;
46
}
Exception.h
例外に関するクラス
ALT_REASON_RUNTIME_ERROR
#define ALT_REASON_RUNTIME_ERROR
Definition:
Exception.h:13
ALT_REASON_INVALID_ARGUMENT
#define ALT_REASON_INVALID_ARGUMENT
Definition:
Exception.h:12
ALT_REASON_EXCEPTION
#define ALT_REASON_EXCEPTION
Definition:
Exception.h:11
pch.h
プリコンパイル済みヘッダー ファイルです。
alt::ex::Exception::Exception
APIENTRY Exception()
コンストラクタ
Definition:
Exception.cpp:13
alt::ex::Exception::~Exception
APIENTRY ~Exception()
デストラクタ
Definition:
Exception.cpp:16
alt::ex::Exception::GetReason
LPCTSTR APIENTRY GetReason() const
原因を取得
Definition:
Exception.cpp:19
alt::ex::InvalidArgumentException::InvalidArgumentException
APIENTRY InvalidArgumentException()
コンストラクタ
Definition:
Exception.cpp:25
alt::ex::InvalidArgumentException::GetReason
LPCTSTR APIENTRY GetReason() const
原因を取得
Definition:
Exception.cpp:31
alt::ex::InvalidArgumentException::~InvalidArgumentException
APIENTRY ~InvalidArgumentException()
デストラクタ
Definition:
Exception.cpp:28
alt::ex::RuntimeException::~RuntimeException
APIENTRY ~RuntimeException()
デストラクタ
Definition:
Exception.cpp:40
alt::ex::RuntimeException::GetReason
LPCTSTR APIENTRY GetReason() const
原因を取得
Definition:
Exception.cpp:43
alt::ex::RuntimeException::RuntimeException
APIENTRY RuntimeException()
コンストラクタ
Definition:
Exception.cpp:37
alt::ex
Definition:
Exception.h:18
WindowsLibrary
Exception.cpp
構築:
1.9.6