Class ErrorConverter
- java.lang.Object
-
- io.vertx.reactivex.ext.web.client.predicate.ErrorConverter
-
public class ErrorConverter extends Object
Converts aResponsePredicateResultto aThrowabledescribing the error. NOTE: This class has been automatically generated from theoriginalnon RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<ErrorConverter>__TYPE_ARGstatic ErrorConverterDEFAULT_CONVERTER
-
Constructor Summary
Constructors Constructor Description ErrorConverter(ErrorConverter delegate)ErrorConverter(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwableapply(ResponsePredicateResult result)static ErrorConvertercreate(Function<ResponsePredicateResult,Throwable> converter)Creates a fullErrorConverter, that will passed a predicate result with the response body.static ErrorConvertercreateFullBody(Function<ResponsePredicateResult,Throwable> converter)Creates a fullErrorConverter, that will passed a predicate result with the response body.booleanequals(Object o)ErrorConvertergetDelegate()inthashCode()static ErrorConverternewInstance(ErrorConverter arg)booleanrequiresBody()StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<ErrorConverter> __TYPE_ARG
-
DEFAULT_CONVERTER
public static final ErrorConverter DEFAULT_CONVERTER
-
-
Constructor Detail
-
ErrorConverter
public ErrorConverter(ErrorConverter delegate)
-
ErrorConverter
public ErrorConverter(Object delegate)
-
-
Method Detail
-
getDelegate
public ErrorConverter getDelegate()
-
create
public static ErrorConverter create(Function<ResponsePredicateResult,Throwable> converter)
Creates a fullErrorConverter, that will passed a predicate result with the response body.The
converterfunction will be invoked after the HTTP response body is received.- Parameters:
converter- a function creating aThrowablefrom aResponsePredicateResult- Returns:
-
createFullBody
public static ErrorConverter createFullBody(Function<ResponsePredicateResult,Throwable> converter)
Creates a fullErrorConverter, that will passed a predicate result with the response body.The
converterfunction will be invoked after the HTTP response body is received.- Parameters:
converter- a function creating aThrowablefrom aResponsePredicateResult- Returns:
-
apply
public Throwable apply(ResponsePredicateResult result)
-
requiresBody
public boolean requiresBody()
- Returns:
truewhen the converter wants to process the request body.
-
newInstance
public static ErrorConverter newInstance(ErrorConverter arg)
-
-