The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

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>