Throw an exception describing the specified assertion violation.
Declared in <bsls_assert.h>
[[noreturn]]
static
void
failByThrow(AssertViolation const& violation);
Throw an AssertTestException whose attributes are the comemnt, file, line, and level from the specified violation provided that BDE_BUILD_TARGET_EXC is defined; otherwise, log an appropriate message and abort the program (similar to failByAbort).
This function does not return.
| Name | Description |
|---|---|
| violation | details of the failed assertion |