> ## Documentation Index
> Fetch the complete documentation index at: https://primer.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# PrimerError

```typescript TYPESCRIPT theme={"dark"}
class PrimerError extends Error {
  errorId: string;
  errorCode?: string;
  description: string;
  recoverySuggestion?: string;
  diagnosticsId?: string;
}
```

## Properties

**errorId** `string` *required*

A unique error identifier.

**errorCode** `string`

A unique error code.

**description** `string` *required*

A error description.

**recoverySuggestion** `string`

A recovery suggestion for the given error. In case it's present, use it to try
to recover from error.

**diagnosticsId** `string`

A unique diagnostics id for the given error.

## Exposed error Ids and error codes

Please check the [Android-specific](https://primer.io/docs/sdk/android/v2.x.x/installation.md) and the [iOS-specific](https://primer.io/docs/sdk/ios/v2.x.x/installation.md) error ids and codes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.