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

Function Error_RaiseException

examples/abi_overview/example_code.c:281–284  ·  view source on GitHub ↗

[Error.RaiseException.begin]

Source from the content-addressed store, hash-verified

279
280// [Error.RaiseException.begin]
281int Error_RaiseException(void* handle, const TVMFFIAny* args, int32_t num_args, TVMFFIAny* result) {
282 TVMFFIErrorSetRaisedFromCStr("ValueError", "Expected at least 2 arguments");
283 return -1;
284}
285// [Error.RaiseException.end]
286
287// NOLINTEND(modernize-deprecated-headers,modernize-use-nullptr)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected