java.lang.Object
uk.co.idv.common.adapter.json.error.handler.AbstractErrorHandler
- All Implemented Interfaces:
java.util.function.Function<java.lang.Throwable,java.util.Optional<ApiError>>, ErrorHandler
public abstract class AbstractErrorHandler
extends java.lang.Object
implements ErrorHandler
-
-
Method Summary
| Modifier and Type |
Method |
Description |
java.util.Optional<ApiError> |
apply(java.lang.Throwable cause) |
|
protected abstract boolean |
supports(java.lang.Throwable cause) |
|
protected abstract ApiError |
toError(java.lang.Throwable cause) |
|
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.Function
andThen, compose
-
Constructor Details
-
public AbstractErrorHandler()
-
Method Details
-
public java.util.Optional<ApiError> apply(
java.lang.Throwable cause)
- Specified by:
apply in interface java.util.function.Function<java.lang.Throwable,java.util.Optional<ApiError>>
-
protected abstract boolean supports(java.lang.Throwable cause)
-
protected abstract ApiError toError(
java.lang.Throwable cause)