veritatisdoloremque
Version:
Monorepo for the Firebase JavaScript SDK
25 lines (14 loc) • 694 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/storage-types](./storage-types.md) > [UploadTask](./storage-types.uploadtask.md) > [catch](./storage-types.uploadtask.catch.md)
## UploadTask.catch() method
Equivalent to calling `then(null, onRejected)`<!-- -->.
<b>Signature:</b>
```typescript
catch(onRejected: (error: FirebaseStorageError) => any): Promise<any>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| onRejected | (error: [FirebaseStorageError](./storage-types.firebasestorageerror.md)<!-- -->) => any | |
<b>Returns:</b>
Promise<any>