<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [motion-sdk](./motion-sdk.md) &gt; [MultiError](./motion-sdk.multierror.md) &gt; [errorType](./motion-sdk.multierror.errortype.md)

## MultiError.errorType property

Indicates the class of the error.

**Signature:**

```typescript
readonly errorType: typeof multiErrorType;
```

## Remarks

Each distinct type of [MotionError](./motion-sdk.motionerror.md) has its own constant value of `errorType`<!-- -->. This is the recommended way to programmatically distinguish between, say, a [LimiterError](./motion-sdk.limitererror.md) and a [FetchError](./motion-sdk.fetcherror.md)<!-- -->, to take appropriate recovery steps.

See [isMotionError()](./motion-sdk.ismotionerror.md) and the related `is*Error` functions for built-in type assertions.

