ExceptionExtensions static class ExceptionExtensions Represents extension methods for common exception-based operations. Documentation Code public static bool IsCanceledByUser(this Exception ex, CancellationToken token) Check if source of the exception was user cancellation request.