[#BloombergLP-bsls-Review-failByThrow] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/Review.adoc[Review]::failByThrow :relfileprefix: ../../../ :mrdocs: Throw an `AssertTestException` (whose attributes are `comment`, `filename`, and `lineNumber` from the specified `violation`), provided that `BDE_BUILD_TARGET_EXC` is defined; otherwise, log an appropriate message and abort the program (similar to `failByAbort`). == Synopsis Declared in `<bsls_review.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[noreturn]] static void failByThrow(xref:BloombergLP/bsls/ReviewViolation.adoc[ReviewViolation] const& violation); ---- == Return Value [NOTE] ==== This function https://en.cppreference.com/cpp/language/attributes/noreturn[does not return^]. ==== [.small]#Created with https://www.mrdocs.com[MrDocs]#