public class Exceptions extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Exceptions.ConsumerEx<T> |
static interface |
Exceptions.FunctionEx<T,R> |
static interface |
Exceptions.SupplierEx<T> |
| Constructor and Description |
|---|
Exceptions() |
| Modifier and Type | Method and Description |
|---|---|
ExceptionsCollector |
collectorOf(Class<? extends Throwable> exceptionType) |
static <T> Consumer<T> |
tryAccept(Exceptions.ConsumerEx<T> consumer) |
static <T,R> Function<T,R> |
tryApply(Exceptions.FunctionEx<T,R> function) |
static <T> Supplier<T> |
tryGet(Exceptions.SupplierEx<T> supplier) |
public ExceptionsCollector collectorOf(Class<? extends Throwable> exceptionType)
public static <T> Supplier<T> tryGet(Exceptions.SupplierEx<T> supplier)
public static <T> Consumer<T> tryAccept(Exceptions.ConsumerEx<T> consumer)
public static <T,R> Function<T,R> tryApply(Exceptions.FunctionEx<T,R> function)
Copyright © 2020. All rights reserved.