Package org.ujorm.tools.web
Class ExceptionProvider
java.lang.Object
org.ujorm.tools.web.ExceptionProvider
- Author:
- Pavel Ponec
-
Method Summary
Modifier and TypeMethodDescription<T extends Throwable>
voidApply consumer if the exception is not null.voidApply consumer if the exception is a required type (or not null).static @NotNull ExceptionProviderof()A factory methodstatic @NotNull ExceptionProviderA factory method
-
Method Details
-
catchEx
Apply consumer if the exception is a required type (or not null). -
catchEx
public <T extends Throwable> void catchEx(@NotNull @NotNull Class<T> exceptionClass, @NotNull @NotNull Consumer<T> exceptionConsumer) Apply consumer if the exception is not null. -
of
A factory method -
of
A factory method
-