> ## 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

<Expandable defaultOpen>
  <ResponseField name="errorId" type="string" required>
    A unique error identifier.
  </ResponseField>

  <ResponseField name="errorCode" type="string">
    A unique error code.
  </ResponseField>

  <ResponseField name="description" type="string" required>
    A error description.
  </ResponseField>

  <ResponseField name="recoverySuggestion" type="string">
    A recovery suggestion for the given error. In case it's present, use it to try
    to recover from error.
  </ResponseField>

  <ResponseField name="diagnosticsId" type="string">
    A unique diagnostics id for the given error.
  </ResponseField>
</Expandable>

## Exposed error Ids and error codes

Please check the [Android-specific](/sdk/android/v2.x.x/installation) and the [iOS-specific](/sdk/ios/v2.x.x/installation) error ids and codes.
