Class ErrorConverter
- java.lang.Object
-
- io.vertx.mutiny.ext.web.client.predicate.ErrorConverter
-
public class ErrorConverter extends Object
Converts aResponsePredicateResult
to aThrowable
describing the error. NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<ErrorConverter>
__TYPE_ARG
static ErrorConverter
DEFAULT_CONVERTER
-
Constructor Summary
Constructors Constructor Description ErrorConverter(io.vertx.ext.web.client.predicate.ErrorConverter delegate)
ErrorConverter(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
apply(ResponsePredicateResult result)
static ErrorConverter
create(Function<ResponsePredicateResult,Throwable> converter)
static ErrorConverter
createFullBody(Function<ResponsePredicateResult,Throwable> converter)
boolean
equals(Object o)
io.vertx.ext.web.client.predicate.ErrorConverter
getDelegate()
int
hashCode()
static ErrorConverter
newInstance(io.vertx.ext.web.client.predicate.ErrorConverter arg)
boolean
requiresBody()
String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<ErrorConverter> __TYPE_ARG
-
DEFAULT_CONVERTER
public static final ErrorConverter DEFAULT_CONVERTER
-
-
Constructor Detail
-
ErrorConverter
public ErrorConverter(io.vertx.ext.web.client.predicate.ErrorConverter delegate)
-
ErrorConverter
public ErrorConverter(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.client.predicate.ErrorConverter getDelegate()
-
create
public static ErrorConverter create(Function<ResponsePredicateResult,Throwable> converter)
- Parameters:
converter
- a function creating aThrowable
from aResponsePredicateResult
- Returns:
-
createFullBody
public static ErrorConverter createFullBody(Function<ResponsePredicateResult,Throwable> converter)
- Parameters:
converter
- a function creating aThrowable
from aResponsePredicateResult
- Returns:
-
apply
public Throwable apply(ResponsePredicateResult result)
-
requiresBody
public boolean requiresBody()
- Returns:
true
when the converter wants to process the request body.
-
newInstance
public static ErrorConverter newInstance(io.vertx.ext.web.client.predicate.ErrorConverter arg)
-
-