SetException(Exception)View sourcepublic void SetException(Exception exception) Completes this instance with an exception. ParametersexceptionExceptionThe exception.