folly::throw_exception

throw_exception

Synopses

Declared in <folly/lang/Exception.h>

throw_exception

template<typename Ex>
[[noreturn]]
void
throw_exception(Ex&& ex);
» more...

throw_exception

template<
    typename Ex,
    typename... Args>
[[noreturn]]
void
throw_exception(Args&&... args);
» more...

Return Value

NOTE

This function does not return.

Parameters

NameDescription
exThe exception object to throw.
argsThe arguments forwarded to the exception constructor.