Back to Firebase Js Sdk

FirestoreError class

docs-devsite/firestore_lite.firestoreerror.md

12.12.11.4 KB
Original Source

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.

<b>Signature:</b>

typescript
export declare class FirestoreError extends FirebaseError 

<b>Extends:</b> FirebaseError

Properties

PropertyModifiersTypeDescription
codeFirestoreErrorCodeThe backend error code associated with this error.
messagestringA custom error description.
stackstringThe stack of the error.

FirestoreError.code

The backend error code associated with this error.

<b>Signature:</b>

typescript
readonly code: FirestoreErrorCode;

FirestoreError.message

A custom error description.

<b>Signature:</b>

typescript
readonly message: string;

FirestoreError.stack

The stack of the error.

<b>Signature:</b>

typescript
readonly stack?: string;