the exception that was set on this future.
The exception (or $(D_KEYWORD null) if no exception was set) is returned only if the future is done. If the future has been cancelled, throws $(D_PSYMBOL CancelledException). If the future isn't done, throws $(D_PSYMBOL InvalidStateException).