@FunctionalInterface public interface ExceptionHandler
| Modifier and Type | Method and Description |
|---|---|
default boolean |
isEnabled(Class aClass) |
default void |
on(Class clazz,
String message) |
void |
on(Class clazz,
String message,
Throwable thrown)
A method to call when an exception occurs.
|
default void |
on(Class clazz,
Throwable thrown) |
void on(Class clazz, String message, Throwable thrown)
clazz - the error is associated with, e.g. the one in which it was caughtmessage - any message associated with the error, or empty String.thrown - any Throwable caught, or null if there was no exception.default boolean isEnabled(Class aClass)
Copyright © 2019. All rights reserved.