RnExecuTorchError<
C>(code,message,etRuntimeErrorCode?):RnExecuTorchError<C>
Defined in: core/error.ts:84
Creates an RnExecuTorchError carrying a machine-readable code.
C extends "LOAD_FAILED" | "EXECUTION_FAILED" | "SCHEMA_MISMATCH" | "INVALID_ARGUMENT" | "INVALID_STATE" | "RESOURCE_DISPOSED" | "RESOURCE_BUSY" | "DOWNLOAD_FAILED" | "DOWNLOAD_ABORTED" | "UNKNOWN"
The specific error code.
C
The classification to attach. See RnExecuTorchErrorCode.
string
A human-readable description of the failure.
number
The raw ExecuTorch runtime error, when available.
An Error carrying code and name: 'RnExecuTorchError'.
throw RnExecuTorchError('INVALID_ARGUMENT', 'Shape dimensions must be positive');