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

#include "NameException.h"

Inheritance diagram for GraphicSpace::NameException:
Inheritance graph
Collaboration diagram for GraphicSpace::NameException:
Collaboration graph

Public Member Functions

 NameException (const uint8_t Name[Bitmap::HEADER_NAME_LENGTH]) noexcept
 
 ~NameException (void) noexcept=default
 
void Write (FILE *OutputFile) const noexcept override
 

Private Attributes

NameExceptionType ExceptionKind
 
char String [Bitmap::HEADER_NAME_LENGTH]
 

Static Private Attributes

static const char *const ErrorFormat
 
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

Definition at line 50 of file NameException.h.

Constructor & Destructor Documentation

◆ NameException()

GraphicSpace::NameException::NameException ( const uint8_t  Name[Bitmap::HEADER_NAME_LENGTH])
noexcept
Description:
Constructor.
Parameters
NameType name that caused the exception.
Exceptions
None.
Returns
Not applicable
See also
Bitmap::HEADER_NAME_LENGTH

Definition at line 44 of file NameException.cpp.

References GraphicSpace::Bitmap::HEADER_NAME_LENGTH, and IgnoreValue.

◆ ~NameException()

GraphicSpace::NameException::~NameException ( void  )
defaultnoexcept

Member Function Documentation

◆ Write()

void GraphicSpace::NameException::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.
See also
Bitmap::HEADER_NAME_LENGTH

Reimplemented from GraphicSpace::Exception.

Definition at line 73 of file NameException.cpp.

References GraphicSpace::Bitmap::HEADER_NAME_LENGTH.

Member Data Documentation

◆ ErrorFormat

GraphicSpace::NameException::ErrorFormat
staticprivate
Initial value:
=
"Input data error: %s %.*s\n"

Format string used to write error messages.

Definition at line 65 of file NameException.h.

◆ ExceptionKind

GraphicSpace::NameException::ExceptionKind
private

Kind of the exception.

Definition at line 56 of file NameException.h.

◆ Message

GraphicSpace::NameException::Message
staticprivate
Initial value:
=
{
"invalid file type name"
}

Array of error messages, one for each error.

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

Definition at line 75 of file NameException.h.

◆ String

GraphicSpace::NameException::String
private

String that caused the exception.

Definition at line 61 of file NameException.h.


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