Throw or abort in response to a review violation.

Synopsis

Declared in <bsls_asserttest.h>

static
void
failTestDriverByReview(ReviewViolation const& violation);

Description

Throw an AssertTestException having the comment, fileName, and lineNumber taken from the specified violation as its salient attributes, provided that BDE_BUILD_TARGET_EXC is defined; otherwise, log an appropriate message and abort the program (similar to Assert::failAbort). Note that this function is intended to have a signature compatible with a registered assertion‐failure handler function in bsls_assert.

Parameters

Name

Description

violation

details of the failed review

Created with MrDocs