[#BloombergLP-bsls-AssertTest-catchProbeRaw] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/AssertTest.adoc[AssertTest]::catchProbeRaw :relfileprefix: ../../../ :mrdocs: Return whether a caught assertion matches a raw failure probe. == Synopsis Declared in `<bsls_asserttest.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool catchProbeRaw( char expectedResult, bool checkLevel, char expectedLevel, xref:BloombergLP/bsls/AssertTestException.adoc[AssertTestException] const& caughtException); ---- == Description Return `true` if the specified `expectedResult` is `F` (for Fail), the specified `checkLevel` flag is `false` or the `expectedLevel` is as wide or wider than the actual assertion failure level, and the specified `caughtException` contains valid fields; otherwise, return `false`. If `expectedResult`, `expectedLevel`, or any field of `caughtException` is invalid (i.e., an invalid filename, null or empty expression text, or a non‐positive line number), this function reports the invalid value(s) to `stdout` before returning `false`. == Return Value `true` if the failure probe matches, else `false` == Parameters [cols="1,4"] |=== | Name| Description | *expectedResult* | expected outcome (`P` for pass, `F` for fail) | *checkLevel* | whether to compare assertion levels | *expectedLevel* | expected assertion level (`S`, `A`, `O`, or `I`) | *caughtException* | exception thrown by the assertion handler |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#