onException

abstract fun onException(exception: Consumer<Throwable>): ProgressToken<T>

Adds a new consumer to the progressToken which gets called if the the progress fails with an exception.

Return

This instance.

Parameters

exception