[#CHECK_THROW]
= CHECK&lowbar;THROW
:mrdocs:

If cond is not true, raise an exception of type E&period; E must have a ctor that works with const char&ast; (a description of the failure)&period;

== Synopsis

Declared in `&lt;folly&sol;Exception&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
#define CHECK&lowbar;THROW(cond, E)

----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cond*
| The condition that must hold&semi; an exception is thrown when it is false&period;
| *E*
| The exception type to throw, constructible from a `const char&ast;` description&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
