Package org.forgerock.util.promise
Interface ExceptionHandler<E>
- Type Parameters:
E
- The type of exception consumed by the handler.
- All Known Implementing Classes:
PromiseImpl
public interface ExceptionHandler<E>
A completion handler for consuming exceptions which occur during the execution of
asynchronous tasks.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleException
(E exception) Invoked when the asynchronous task has failed.
-
Method Details
-
handleException
Invoked when the asynchronous task has failed.- Parameters:
exception
- The exception indicating why the asynchronous task has failed.
-