<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [FirestoreError](./firestore_.firestoreerror.md)

## FirestoreError class

An error returned by a Firestore operation.

<b>Signature:</b>

```typescript
export declare class FirestoreError extends Error 
```
<b>Extends:</b> Error

## Properties

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [code](./firestore_.firestoreerror.code.md) |  | [FirestoreErrorCode](./firestore_.firestoreerrorcode.md) | The backend error code associated with this error. |
|  [message](./firestore_.firestoreerror.message.md) |  | string | A custom error description. |
|  [name](./firestore_.firestoreerror.name.md) |  | string | The custom name for all FirestoreErrors. |
|  [stack?](./firestore_.firestoreerror.stack.md) |  | string | <i>(Optional)</i> The stack of the error. |

