Create a FuzzTestPreconditionException with the specified attributes.

Synopsis

Declared in <bsls_fuzztestpreconditionexception.h>

constexpr
explicit
FuzzTestPreconditionException(
    char const* expression,
    char const* filename,
    int lineNumber,
    char const* level = "UNKNOWN",
    bool const isReview = false);

Description

Create a FuzzTestPreconditionException object with the specified expression, filename, lineNumber, level, and isReview. The behavior is undefined unless 0 < line and all of expression, filename, and level point to valid null‐terminated character strings that will remain unmodified for the lifetime of this object (e.g., string literals).

Parameters

Name

Description

expression

program source of the failing precondition

filename

name of the file containing the assertion/review

lineNumber

line number within that file of the failing expression

level

level of the assertion or review that has failed

isReview

true if the failure is a review; false otherwise

Created with MrDocs