Alternate
e697dbe9c5997e35395fe158628dd8c5209481da
for Visual Studio 2022 and Windows 11.
読み取り中…
検索中…
一致する文字列を見つけられません
Exception.h
[詳解]
1
// ----------------------------------------------------------------------------
6
7
#pragma once
8
9
#include "
WindowsLibrary.h
"
10
11
#define ALT_REASON_EXCEPTION _T("例外が発生しました。"
)
12
#define ALT_REASON_INVALID_ARGUMENT _T("引数の設定が異常です。"
)
13
#define ALT_REASON_RUNTIME_ERROR _T("実行時にエラーが発生しました。"
)
14
15
namespace
alt
16
{
17
namespace
ex
18
{
21
class
DLL_DECLSPEC
Exception
:
public
WindowsLibrary
22
{
23
public
:
25
APIENTRY
Exception
();
26
28
APIENTRY
~Exception
();
29
32
LPCTSTR APIENTRY GetReason ()
const
;
33
};
34
37
class
DLL_DECLSPEC
InvalidArgumentException
:
Exception
38
{
39
public
:
41
APIENTRY
InvalidArgumentException
();
42
44
APIENTRY
~InvalidArgumentException
();
45
48
LPCTSTR APIENTRY GetReason ()
const
;
49
};
50
53
class
DLL_DECLSPEC
RuntimeException
:
Exception
54
{
55
public
:
57
APIENTRY
RuntimeException
();
58
60
APIENTRY
~RuntimeException
();
61
64
LPCTSTR APIENTRY GetReason ()
const
;
65
};
66
}
67
}
DLL_DECLSPEC
#define DLL_DECLSPEC
Definition:
framework.h:17
WindowsLibrary.h
WindowsAPIを集約したプロジェクトファイル
alt::WindowsLibrary
プロジェクト共通基底クラス
Definition:
WindowsLibrary.h:34
alt::ex::Exception
基底となる例外クラス
Definition:
Exception.h:22
alt::ex::InvalidArgumentException
Definition:
Exception.h:38
alt::ex::RuntimeException
実行時エラー例外
Definition:
Exception.h:54
alt
Definition:
DBLibrary.h:12
WindowsLibrary
Exception.h
構築:
1.9.6