! * \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 */
| 58 | * \endcode |
| 59 | */ |
| 60 | static void RaiseError(const ffi::String& msg) { TVM_FFI_THROW(RuntimeError) << msg; } |
| 61 | |
| 62 | TVM_FFI_STATIC_INIT_BLOCK() { |
| 63 | namespace refl = tvm::ffi::reflection; |
nothing calls this directly
no outgoing calls
no test coverage detected