public interface CheckedSupplier<T,E extends CoreApiException>
| Modifier and Type | Method and Description |
|---|---|
static <T,E extends CoreApiException> |
create(T value) |
static <T,E extends CoreApiException> |
createError(Throwable exception) |
T |
get()
Get the stored instance or throw a stored exception.
|
static <T,E extends CoreApiException> CheckedSupplier<T,E> createError(Throwable exception)
T - Represents type of stored value.E - Represents type of stored exception.exception - Create an instance with stored exception of type E.static <T,E extends CoreApiException> CheckedSupplier<T,E> create(T value)
T - Represents type of stored value.E - Represents type of stored exception.value - Create an instance with stored value of type T.T get() throws E extends CoreApiException, IOException
E - The stored CoreApiException.IOException - The stored IOException.E extends CoreApiExceptionCopyright © 2025. All rights reserved.