DEPRECATED: Use failByThrow instead.

Synopsis

Declared in <bsls_assert.h>

[[noreturn]]
static
void
failThrow(
    char const* comment,
    char const* file,
    int line);

Description

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).

Return Value

Note

This function does not return.

Parameters

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

Created with MrDocs