ErrorConverter

Converts a @see \io\vertx\jphp\ext\web\client\predicate\ResponsePredicateResult to a <code>Throwable</code> describing the error.

package

Default

Methods

__construct

__construct() 

apply

apply( $arg0) : \Exception

Arguments

$arg0

ResponsePredicateResult

Response

\Exception

Creates a full @see \io\vertx\jphp\ext\web\client\predicate\ErrorConverter, that will passed a predicate result with the response body.

create( $arg0) : \io\vertx\jphp\ext\web\client\predicate\ErrorConverter
static

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

Arguments

$arg0

callable

Response

\io\vertx\jphp\ext\web\client\predicate\ErrorConverter

Creates a full @see \io\vertx\jphp\ext\web\client\predicate\ErrorConverter, that will passed a predicate result with the response body.

createFullBody( $arg0) : \io\vertx\jphp\ext\web\client\predicate\ErrorConverter
static

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

Arguments

$arg0

callable

Response

\io\vertx\jphp\ext\web\client\predicate\ErrorConverter

requiresBody

requiresBody() : boolean

Response

boolean

{@code true} when the converter wants to process the request body.

Constants

DEFAULT_CONVERTER

DEFAULT_CONVERTER
var

php文件只是为了写代码方便,常量的实际值请参考原java文件