• Check if an error is caused by user calling cancel() in REST API.

    Parameters

    • error: unknown

    Returns error is CanceledError

    Note

    This function works ONLY for errors thrown by REST API. For GraphQL APIs, use client.isCancelError(error) instead. client is generated from generateClient() API from aws-amplify/api.