PHP Класс Elastica\Exception\Connection\HttpException

Автор: Nicolas Ruflin ([email protected])
Наследование: extends Elastica\Exception\ConnectionException
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_error Error code / message.

Открытые методы

Метод Описание
__construct ( integer | string $error, Request $request = null, Response $response = null ) Construct Exception.
getError ( ) : string Return Error code / message.
getErrorMessage ( string $error ) : string Returns the error message corresponding to the error code cUrl error code reference can be found here {@link http://curl.haxx.se/libcurl/c/libcurl-errors.html}.

Описание методов

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

Construct Exception.
public __construct ( integer | string $error, Request $request = null, Response $response = null )
$error integer | string Error
$request Elastica\Request
$response Elastica\Response

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

Return Error code / message.
public getError ( ) : string
Результат string Error code / message

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

Returns the error message corresponding to the error code cUrl error code reference can be found here {@link http://curl.haxx.se/libcurl/c/libcurl-errors.html}.
public getErrorMessage ( string $error ) : string
$error string Error code
Результат string Error message

Описание свойств

$_error защищенное свойство

Error code / message.
protected $_error