Type Alias: RnExecuTorchError<C>
RnExecuTorchError<
C> =Error&object
Defined in: core/error.ts:84
An error raised by React Native ExecuTorch.
Represents a standard Error augmented with a machine-readable
RnExecuTorchErrorCode and an optional ExecuTorch C++ runtime code
(etRuntimeErrorCode).
When thrown, call as a factory function without new (safe across worklet
threads):
throw RnExecuTorchError('INVALID_ARGUMENT', 'Shape dimensions must be positive');
Type Declaration
code
code:
C
etRuntimeErrorCode?
optionaletRuntimeErrorCode:number
The raw executorch::runtime::Error value when the failure came out of the
ExecuTorch runtime, absent otherwise. Diagnostic only: upstream's code space
moves independently of ours.
name
name:
"RnExecuTorchError"
Type Parameters
C
C extends RnExecuTorchErrorCode = RnExecuTorchErrorCode
The specific code, narrowed by isRnExecuTorchError.