Function CheckException
Defined in File libcacaocommon.hpp
Function Documentation
-
inline void CheckException(bool cond, std::string msg, std::function<void()> unwindFn =
[]() {}
) Quick utility to throw an exception on an error condition.
The exception will be thrown if the condition evaluates to false
- Parameters:
cond – The condition to evaluate
msg – The message for the exception thrown
unwindFn – A function to clean up state before exception throwing should the condition be false