private static class DefaultServerResponseBuilder.AbstractServerResponse.ErrorHandler<T extends ServerResponse>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.function.Predicate<java.lang.Throwable> |
predicate |
private java.util.function.BiFunction<java.lang.Throwable,ServerRequest,T> |
responseProvider |
Constructor and Description |
---|
ErrorHandler(java.util.function.Predicate<java.lang.Throwable> predicate,
java.util.function.BiFunction<java.lang.Throwable,ServerRequest,T> responseProvider) |
Modifier and Type | Method and Description |
---|---|
T |
handle(java.lang.Throwable t,
ServerRequest serverRequest) |
boolean |
test(java.lang.Throwable t) |
private final java.util.function.Predicate<java.lang.Throwable> predicate
private final java.util.function.BiFunction<java.lang.Throwable,ServerRequest,T extends ServerResponse> responseProvider
public ErrorHandler(java.util.function.Predicate<java.lang.Throwable> predicate, java.util.function.BiFunction<java.lang.Throwable,ServerRequest,T> responseProvider)
public boolean test(java.lang.Throwable t)
public T handle(java.lang.Throwable t, ServerRequest serverRequest)