Elastica\Exception\Connection\HttpException::__construct PHP Метод

__construct() публичный Метод

Construct Exception.
public __construct ( integer | string $error, Request $request = null, Response $response = null )
$error integer | string Error
$request Elastica\Request
$response Elastica\Response
    public function __construct($error, Request $request = null, Response $response = null)
    {
        $this->_error = $error;
        $message = $this->getErrorMessage($this->getError());
        parent::__construct($message, $request, $response);
    }