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