error The underlying error if the task is in a failed state. Declarationvar error: (any Error)? { get } See AlsoChecking the state of a taskstateMLTaskState