@FunctionalInterface public interface ErrorConverter
ResponsePredicateResult
to a Throwable
describing the error.Modifier and Type | Field and Description |
---|---|
static ErrorConverter |
DEFAULT_CONVERTER |
Modifier and Type | Method and Description |
---|---|
Throwable |
apply(ResponsePredicateResult result) |
static ErrorConverter |
create(java.util.function.Function<ResponsePredicateResult,Throwable> converter)
Creates a full
ErrorConverter , that will passed a predicate result with the response body. |
static ErrorConverter |
createFullBody(java.util.function.Function<ResponsePredicateResult,Throwable> converter)
Creates a full
ErrorConverter , that will passed a predicate result with the response body. |
default boolean |
requiresBody() |
static final ErrorConverter DEFAULT_CONVERTER
static ErrorConverter create(java.util.function.Function<ResponsePredicateResult,Throwable> converter)
ErrorConverter
, that will passed a predicate result with the response body.
The converter
function will be invoked after the HTTP response body is received.
converter
- a function creating a Throwable
from a ResponsePredicateResult
static ErrorConverter createFullBody(java.util.function.Function<ResponsePredicateResult,Throwable> converter)
ErrorConverter
, that will passed a predicate result with the response body.
The converter
function will be invoked after the HTTP response body is received.
converter
- a function creating a Throwable
from a ResponsePredicateResult
Throwable apply(ResponsePredicateResult result)
default boolean requiresBody()
true
when the converter wants to process the request body.Copyright © 2024 Eclipse. All rights reserved.