Check if an error is caused by user calling cancel() on a upload/download task. If an overwriting error is
supplied to task.cancel(errorOverwrite), this function will return false.
Parameters
error: unknown
The unknown exception to be checked.
Returns error is CanceledError
A boolean indicating if the error was from an upload cancellation
Check if an error is caused by user calling
cancel()
on a upload/download task. If an overwriting error is supplied totask.cancel(errorOverwrite)
, this function will returnfalse
.