ExceptiongetView sourcepublic Exception? Exception Gets the recorded failure or cancellation of a task which failed or was canceled, once this handle has observed its terminal response; otherwise null.