fromNativeError
fun fromNativeError(code: Int, message: String? = null, backend: ComputeBackend? = null): InferenceException(source)
Maps a non-NativeErrorCode.OK native result code to the matching typed exception. Unknown codes produce a NativeFailureException that preserves the raw code.
Parameters
message
optional native diagnostic message.
backend
backend involved, reported by BackendUnavailableException.
Throws
if code is NativeErrorCode.OK (0).