#include "FloatException.h"
The FloatException class represents an exceptions thrown because a floating point number is outside its valid range.
Definition at line 56 of file FloatException.h.
◆ FloatException()
GraphicSpace::FloatException::FloatException |
( |
FloatExceptionType |
thisExceptionKind, |
|
|
float |
thisValue |
|
) |
| |
|
noexcept |
- Description:
- Constructor.
- Parameters
-
thisExceptionKind | Kind of the exception. |
thisValue | Value that caused the exception. |
- Exceptions
-
- Returns
- Not applicable
Definition at line 45 of file FloatException.cpp.
◆ ~FloatException()
GraphicSpace::FloatException::~FloatException |
( |
void |
| ) |
|
|
defaultnoexcept |
◆ Write()
void GraphicSpace::FloatException::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 FloatException.cpp.
◆ ErrorFormat
GraphicSpace::FloatException::ErrorFormat |
|
staticprivate |
Initial value:=
"Parameter error: %s %g\n"
Format string used to write error messages with a number.
Definition at line 70 of file FloatException.h.
◆ ExceptionKind
GraphicSpace::FloatException::ExceptionKind |
|
private |
◆ Message
GraphicSpace::FloatException::Message |
|
staticprivate |
Initial value:=
{
"invalid Q",
"invalid alpha",
"invalid beta"
}
Array of error messages, one for each error.
- Note
- The sequence of messages must correspond to the sequence of values of the FloatExceptionType type.
- See also
- FloatExceptionType
Definition at line 80 of file FloatException.h.
◆ Value
GraphicSpace::FloatException::Value |
|
private |
The documentation for this class was generated from the following files: