Task.IsFaulted property

Value that indicates whether the task completed due to an unhandled exception.

public bool IsFaulted { get; }

See Also