STE-Industries: utilities testing
GraphicSpace::SystemException Class Reference

#include "SystemException.h"

Inheritance diagram for GraphicSpace::SystemException:
Inheritance graph
Collaboration diagram for GraphicSpace::SystemException:
Collaboration graph

Public Member Functions

 SystemException (const SystemException &Argument) noexcept=default
 
 SystemException (SystemException &&Argument) noexcept=default
 
 SystemException (SystemExceptionType thisExceptionKind) noexcept
 
 ~SystemException (void) noexcept=default
 
SystemExceptionoperator= (const SystemException &Argument) noexcept=default
 
SystemExceptionoperator= (SystemException &&Argument) noexcept=default
 
void Write (FILE *OutputFile) const noexcept override
 

Private Attributes

SystemExceptionType ExceptionKind
 

Static Private Attributes

static const char *const ErrorFormat = "System error: %s\n"
 
static const char *const Message []
 

Additional Inherited Members

 Exception (void) noexcept
 
virtual ~Exception (void) noexcept=default
 
- Static Private Member Functions inherited from GraphicSpace::Exception
static void FatalError (void) noexcept
 

Detailed Description

The SystemException class represents an exceptions throw during a thread management operation.

Definition at line 72 of file SystemException.h.

Constructor & Destructor Documentation

◆ SystemException() [1/3]

GraphicSpace::SystemException::SystemException ( SystemExceptionType  thisExceptionKind)
noexcept
Description:
Constructor.
Parameters
thisExceptionKindKind of the exception.
Exceptions
None.
Returns
Not applicable

Definition at line 47 of file SystemException.cpp.

◆ SystemException() [2/3]

GraphicSpace::SystemException::SystemException ( const SystemException Argument)
defaultnoexcept

◆ SystemException() [3/3]

GraphicSpace::SystemException::SystemException ( SystemException &&  Argument)
defaultnoexcept

◆ ~SystemException()

GraphicSpace::SystemException::~SystemException ( void  )
defaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

SystemException& GraphicSpace::SystemException::operator= ( const SystemException Argument)
defaultnoexcept

◆ operator=() [2/2]

SystemException& GraphicSpace::SystemException::operator= ( SystemException &&  Argument)
defaultnoexcept

◆ Write()

void GraphicSpace::SystemException::Write ( FILE *  OutputFile) const
overridevirtualnoexcept
Description:
Write an error message.
Parameters
OutputFilePointer to the file on which the message will be written.
Exceptions
None.
Returns
None.
Note
If OutputFile is not a valid file, opened for writing, the behavior is unpredictable.
If an error occurs while writing on OutputFile, the process is terminated.

Reimplemented from GraphicSpace::Exception.

Definition at line 73 of file SystemException.cpp.

Member Data Documentation

◆ ErrorFormat

GraphicSpace::SystemException::ErrorFormat = "System error: %s\n"
staticprivate

Format string used to write error messages.

Definition at line 82 of file SystemException.h.

◆ ExceptionKind

GraphicSpace::SystemException::ExceptionKind
private

Kind of the exception.

Definition at line 78 of file SystemException.h.

◆ Message

GraphicSpace::SystemException::Message
staticprivate
Initial value:
=
{
"thread initialization error",
"thread start failure",
"invalid thread operation",
"thread join failure",
"mutex initialization failure",
"invalid mutex operation",
"mutex destroy failure",
"mutex lock failure",
"mutex unlock failure",
}

Array of error messages, one for each error.

Note
The sequence of messages must correspond to the sequence of values of the SystemExceptionType type.
See also
SystemExceptionType

Definition at line 92 of file SystemException.h.


The documentation for this class was generated from the following files: