io.vertx.rxjava3.ext.web.client.predicate

## Class ErrorConverter

- java.lang.Object
- - io.vertx.rxjava3.ext.web.client.predicate.ErrorConverter

-     public class ErrorConverter
      extends Object

  Converts a `ResponsePredicateResult` to a `Throwable` describing the error.

  NOTE: This class has been automatically generated from the `original` non RX-ified interface using Vert.x codegen.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static io.vertx.lang.rx.TypeArg<ErrorConverter>` | `__TYPE_ARG`
    `static ErrorConverter` | `DEFAULT_CONVERTER`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ErrorConverter(ErrorConverter delegate)`
    `ErrorConverter(Object delegate)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    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.
    `boolean` | `equals(Object o)`
    `ErrorConverter` | `getDelegate()`
    `int` | `hashCode()`
    `static ErrorConverter` | `newInstance(ErrorConverter arg)`
    `boolean` | `requiresBody()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### __TYPE_ARG

          public static final io.vertx.lang.rx.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

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### getDelegate

          public ErrorConverter getDelegate()

    - #### create

          public static ErrorConverter create(java.util.function.Function<ResponsePredicateResult,Throwable> converter)

      Creates a full `ErrorConverter`, that will passed a predicate result with the response body.

      The `converter` function will be invoked after the HTTP response body is received.

      Parameters:
        `converter` - a function creating a `Throwable` from a `ResponsePredicateResult`
      Returns:

    - #### createFullBody

          public static ErrorConverter createFullBody(java.util.function.Function<ResponsePredicateResult,Throwable> converter)

      Creates a full `ErrorConverter`, that will passed a predicate result with the response body.

      The `converter` function will be invoked after the HTTP response body is received.

      Parameters:
        `converter` - a function creating a `Throwable` from a `ResponsePredicateResult`
      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(ErrorConverter arg)

Copyright © 2021 Eclipse. All rights reserved.