A precondition failed.
More...
#include <debug.h>
A precondition failed.
The throw mechanism is usually used here as in
if (!check)
PreconditionFailed(const char *function, int line, const char *check)
Definition debug.h:94
The parameters of the constructor help debugging.
◆ PreconditionFailed() [1/2]
A precondtion failed.
- Parameters
-
| function | usually __func__, the function that threw the error |
| line | usually __LINE__, the line where it happened |
| check | a string telling what failed. |
◆ PreconditionFailed() [2/2]
| PreconditionFailed |
( |
const char * | function, |
|
|
const char * | file, |
|
|
int | line, |
|
|
const char * | check ) |
|
inline |
A precondtion failed. The parameter help debugging. This is not much different from the previous except we can digg faster in the file where the exception was triggered.
- Parameters
-
| function | usually __func__, the function that threw the error |
| file | usually __FILE__, the file where this function is |
| line | usually __LINE__, the line where it happened |
| check | a string telling what failed. |
◆ setErrorStream()
| void setErrorStream |
( |
std::ostream & | stream | ) |
|
|
static |
◆ print()
| std::ostream & print |
( |
std::ostream & | o | ) |
const |
|
inline |
The documentation for this class was generated from the following files: