DEPRECATED: Use failByThrow instead.
Declared in <bsls_assert.h>
[[noreturn]]
static
void
failThrow(
char const* comment,
char const* file,
int line);
Throw an AssertTestException whose attributes are the specified comemnt, file, line, and level provided that BDE_BUILD_TARGET_EXC is defined; otherwise, log an appropriate message and abort the program (similar to failAbort).
This function does not return.
| Name | Description |
|---|---|
| comment | expression text of the failed assertion |
| file | source file name where the assertion failed |
| line | source line number where the assertion failed |