T - the exception typepublic static class ExceptionHelper.Handler<T extends Throwable> extends Object
| Constructor and Description |
|---|
Handler(Class<T> type,
Consumer<T> consumer)
Creates an exception handler.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesTo(Throwable t)
Checks if handler applies to the given exception.
|
void |
handle(T t)
Handles the exception.
|
Tentackle - distributed, domain- and model-driven