OMNI_THROW_IF_FAILED

Defined in omni/core/ResultError.h

OMNI_THROW_IF_FAILED(expr_)

Helper macro to convert a omni::core::Result to a omni::core::ResultError exception. Useful when authoring API code. Used heavily by omni.bind.