Home > @firebase/firestore > / > LoadBundleTask > catch
LoadBundleTask.catch() method
Implements the Promise<LoadBundleTaskProgress>.catch
interface.
Signature:
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. |
Returns:
Promise<R | LoadBundleTaskProgress>