Project: /docs/reference/js/_project.yaml
Book: /docs/reference/_book.yaml
page_type: reference
{% comment %}
DO NOT EDIT THIS FILE!
This is generated by the JS SDK team, and any local changes will be
overwritten. Changes should be made in the source code at
https://github.com/firebase/firebase-js-sdk
{% endcomment %}
# FirestoreError class
An error returned by a Firestore operation.
Signature:
```typescript
export declare class FirestoreError extends FirebaseError
```
Extends: [FirebaseError](./util.firebaseerror.md#firebaseerror_class)
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [code](./firestore_lite.firestoreerror.md#firestoreerrorcode) | | [FirestoreErrorCode](./firestore_lite.md#firestoreerrorcode) | The backend error code associated with this error. |
| [message](./firestore_lite.firestoreerror.md#firestoreerrormessage) | | string | A custom error description. |
| [stack](./firestore_lite.firestoreerror.md#firestoreerrorstack) | | string | The stack of the error. |
## FirestoreError.code
The backend error code associated with this error.
Signature:
```typescript
readonly code: FirestoreErrorCode;
```
## FirestoreError.message
A custom error description.
Signature:
```typescript
readonly message: string;
```
## FirestoreError.stack
The stack of the error.
Signature:
```typescript
readonly stack?: string;
```