Skip to main content
Version: 0.8.x

Class: RnExecutorchError

Defined in: errors/errorUtils.ts:6

Custom error class for React Native ExecuTorch errors.

Extends​

  • Error

Constructors​

Constructor​

new RnExecutorchError(code, message, cause?): RnExecutorchError

Defined in: errors/errorUtils.ts:17

Parameters​

code​

number

message​

string

cause?​

unknown

Returns​

RnExecutorchError

Overrides​

Error.constructor

Properties​

cause?​

optional cause: unknown

Defined in: errors/errorUtils.ts:15

The original cause of the error, if any.

Overrides​

Error.cause


code​

code: RnExecutorchErrorCode

Defined in: errors/errorUtils.ts:10

The error code representing the type of error.