Home > @firebase/storage > UploadTask > catch
UploadTask.catch() method
Equivalent to calling then(null, onRejected)
.
Signature:
catch(onRejected: (error: FirebaseStorageError) => unknown): Promise<unknown>;
Parameters
Parameter | Type | Description |
---|---|---|
onRejected | (error: FirebaseStorageError) => unknown |
Returns:
Promise<unknown>