FutureTask.setException

Causes this future to report an {@link ExecutionException} with the given throwable as its cause, unless this future has already been set or has been cancelled.

<p>This method is invoked internally by the {@link #run} method upon failure of the computation.

@param t the cause of failure

class FutureTask(V)
protected
void
setException
(
Throwable t
)

Meta