#include "EnumeratedException.h"
The EnumeratedExceptionType type represents the exceptions thrown when an enumerated command line parameter is not correct.
Definition at line 59 of file EnumeratedException.h.
◆ EnumeratedException()
- Description:
- Constructor.
- Parameters
-
thisExceptionKind | Kind of the exception. |
- Exceptions
-
- Returns
- Not applicable
Definition at line 45 of file EnumeratedException.cpp.
◆ ~EnumeratedException()
GraphicSpace::EnumeratedException::~EnumeratedException |
( |
void |
| ) |
|
|
defaultnoexcept |
◆ Write()
void GraphicSpace::EnumeratedException::Write |
( |
FILE * |
OutputFile | ) |
const |
|
overridevirtualnoexcept |
- Description:
- Write an error message.
- Parameters
-
OutputFile | Pointer to the file on which the message will be written. |
- Exceptions
-
- 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 72 of file EnumeratedException.cpp.
◆ ErrorFormat
GraphicSpace::EnumeratedException::ErrorFormat |
|
staticprivate |
Initial value:=
"Input data error: %s\n"
Format string used to write error messages with a number.
Definition at line 69 of file EnumeratedException.h.
◆ ExceptionKind
GraphicSpace::EnumeratedException::ExceptionKind |
|
private |
◆ Message
GraphicSpace::EnumeratedException::Message |
|
staticprivate |
Initial value:=
{
"invalid Randomize",
"invalid PathChoice",
"invalid TruncatePath",
"invalid Quiet"
}
Array of error messages, one for each error.
- Note
- The sequence of messages must correspond to the sequence of values of the EnumeratedExceptionType type.
- See also
- EnumeratedExceptionType
Definition at line 79 of file EnumeratedException.h.
The documentation for this class was generated from the following files: