@FunctionalInterface public interface ExceptionFactory
| Modifier and Type | Field and Description |
|---|---|
static ExceptionFactory |
DEFAULT |
| Modifier and Type | Method and Description |
|---|---|
Optional<? extends RuntimeException> |
create(Response response)
Returns a
RuntimeException (or subclass) if the response error
condition is met (usually {@code ! |
static final ExceptionFactory DEFAULT
Optional<? extends RuntimeException> create(Response response)
RuntimeException (or subclass) if the response error
condition is met (usually !response.isOk(). If no exception to be
thrown then returns Optional.empty().response - response to map into exceptionCopyright © 2021–2024. All rights reserved.