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