CHECK_THROW

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

Synopsis

Declared in <folly/Exception.h>

#define CHECK_THROW(cond, E)

Parameters

NameDescription
condThe condition that must hold; an exception is thrown when it is false.
EThe exception type to throw, constructible from a const char* description.