Kraken\Channel\Record\RequestRecord::reject PHP Method

reject() public method

Reject Request calling failure handler.
public reject ( Erro\Error | Exceptio\Exception | ThrowableProxy $ex ) : mixed
$ex Erro\Error | Exceptio\Exception | Kraken\Throwable\ThrowableProxy
return mixed
    public function reject($ex)
    {
        $callback = $this->onFailure();
        return $callback($ex);
    }