MCPcopy Create free account
hub / github.com/apache/tvm-ffi / RaiseError

Function RaiseError

examples/python_packaging/src/extension.cc:60–60  ·  view source on GitHub ↗

! * \brief Raise a runtime error to demonstrate error propagation. * * \param msg The error message to raise. * * \code{.py} * import my_ffi_extension * try: * my_ffi_extension.raise_error("boom") * except RuntimeError: * pass * \endcode */

Source from the content-addressed store, hash-verified

58 * \endcode
59 */
60static void RaiseError(const ffi::String& msg) { TVM_FFI_THROW(RuntimeError) << msg; }
61
62TVM_FFI_STATIC_INIT_BLOCK() {
63 namespace refl = tvm::ffi::reflection;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected