voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
25 lines (14 loc) • 830 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/firestore](./firestore.md) > [/](./firestore_.md) > [LoadBundleTask](./firestore_.loadbundletask.md) > [catch](./firestore_.loadbundletask.catch.md)
## LoadBundleTask.catch() method
Implements the `Promise<LoadBundleTaskProgress>.catch` interface.
<b>Signature:</b>
```typescript
catch<R>(onRejected: (a: Error) => R | PromiseLike<R>): Promise<R | LoadBundleTaskProgress>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| onRejected | (a: Error) => R \| PromiseLike<R> | Called when an error occurs during bundle loading. |
<b>Returns:</b>
Promise<R \| [LoadBundleTaskProgress](./firestore_.loadbundletaskprogress.md)<!-- -->>