UNPKG

veritatisdoloremque

Version:
25 lines (14 loc) 694 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/storage-types](./storage-types.md) &gt; [UploadTask](./storage-types.uploadtask.md) &gt; [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)<!-- -->) =&gt; any | | <b>Returns:</b> Promise&lt;any&gt;