BloombergLP::bsls::FuzzTestPreconditionException::FuzzTestPreconditionException

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

NameDescription
expressionprogram source of the failing precondition
filenamename of the file containing the assertion/review
lineNumberline number within that file of the failing expression
levellevel of the assertion or review that has failed
isReviewtrue if the failure is a review; false otherwise