STE-Industries: utilities testing
SystemException.h
Go to the documentation of this file.
1
13
# if !defined SYSTEM_EXCEPTION_H
14
15
# define SYSTEM_EXCEPTION_H
16
17
# include "
Exception.h
"
18
19
namespace
GraphicSpace
20
{
21
33
34
enum class
SystemExceptionType
35
{
36
// Error while initializing the thread management.
37
THREAD_INITIALIZATION_FAILED
,
38
39
// Thread creation failure.
40
THREAD_CREATION_FAILED
,
41
42
// Invalid operation on a thread.
43
INVALID_THREAD_OPERATION
,
44
45
// Thread join failure.
46
THREAD_JOIN_FAILED
,
47
48
// Error while initializing a mutex.
49
MUTEX_INITIALIZATION_FAILED
,
50
51
// Invalid operation on a mutex.
52
INVALID_MUTEX_OPERATION
,
53
54
// Error while destroying a mutex.
55
MUTEX_DESTROY_FAILED
,
56
57
// Mutex lock failure.
58
MUTEX_LOCK_FAILED
,
59
60
// Mutex unlock failure.
61
MUTEX_UNLOCK_FAILED
62
63
};
64
71
72
class
SystemException
:
private
Exception
73
{
74
private
:
75
78
SystemExceptionType
ExceptionKind
;
79
82
static
const
char
*
const
ErrorFormat
;
83
92
static
const
char
*
const
Message
[];
93
94
public
:
95
96
SystemException
(
SystemExceptionType
97
thisExceptionKind) noexcept;
98
99
SystemException
(
const
SystemException
& Argument)
100
noexcept =
default
;
101
102
SystemException
(
SystemException
&& Argument)
103
noexcept =
default
;
104
105
~SystemException
(
void
) noexcept =
default
;
106
107
SystemException
&
operator =
(
const
SystemException
&
108
Argument) noexcept =
default
;
109
110
SystemException
&
operator =
(
SystemException
&& Argument)
111
noexcept =
default
;
112
113
void
Write
(FILE* OutputFile)
const
noexcept
override
;
114
115
};
116
117
}
118
119
# endif
GraphicSpace::SystemExceptionType::THREAD_JOIN_FAILED
@ THREAD_JOIN_FAILED
GraphicSpace::SystemException
Definition:
SystemException.h:72
GraphicSpace::SystemExceptionType::MUTEX_LOCK_FAILED
@ MUTEX_LOCK_FAILED
GraphicSpace::SystemException::SystemException
SystemException(SystemExceptionType thisExceptionKind) noexcept
Definition:
SystemException.cpp:47
GraphicSpace::SystemExceptionType::MUTEX_DESTROY_FAILED
@ MUTEX_DESTROY_FAILED
GraphicSpace::SystemException::operator=
SystemException & operator=(const SystemException &Argument) noexcept=default
GraphicSpace::Exception
Definition:
Exception.h:29
GraphicSpace::SystemExceptionType::INVALID_MUTEX_OPERATION
@ INVALID_MUTEX_OPERATION
GraphicSpace::SystemExceptionType::THREAD_INITIALIZATION_FAILED
@ THREAD_INITIALIZATION_FAILED
GraphicSpace::SystemExceptionType::MUTEX_UNLOCK_FAILED
@ MUTEX_UNLOCK_FAILED
Exception.h
GraphicSpace::SystemException::~SystemException
~SystemException(void) noexcept=default
GraphicSpace::SystemExceptionType
SystemExceptionType
Definition:
SystemException.h:34
GraphicSpace
Definition:
Bitmap.cpp:29
GraphicSpace::SystemExceptionType::MUTEX_INITIALIZATION_FAILED
@ MUTEX_INITIALIZATION_FAILED
GraphicSpace::SystemException::ExceptionKind
SystemExceptionType ExceptionKind
Definition:
SystemException.h:78
GraphicSpace::SystemExceptionType::INVALID_THREAD_OPERATION
@ INVALID_THREAD_OPERATION
GraphicSpace::SystemException::Message
static const char *const Message[]
Definition:
SystemException.h:92
GraphicSpace::SystemException::ErrorFormat
static const char *const ErrorFormat
Definition:
SystemException.h:82
GraphicSpace::SystemExceptionType::THREAD_CREATION_FAILED
@ THREAD_CREATION_FAILED
GraphicSpace::SystemException::Write
void Write(FILE *OutputFile) const noexcept override
Definition:
SystemException.cpp:73
Desktop
Termite
Include
SystemException.h
Generated on Thu Mar 14 2024 10:18:16 for STE-Industries: utilities testing by
1.8.17