Amplify JS API Documentation
    Preparing search index...

    Variable isCancelErrorConst

    isCancelError: (error: unknown) => error is CanceledError

    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.

    Type Declaration

      • (error: unknown): error is CanceledError
      • Parameters

        • error: unknown

          The unknown exception to be checked.

        Returns error is CanceledError

        • A boolean indicating if the error was from an upload cancellation