PHP Class Elastica\Exception\Connection\HttpException

Author: Nicolas Ruflin ([email protected])
Inheritance: extends Elastica\Exception\ConnectionException
Afficher le fichier Open project: ruflin/elastica

Protected Properties

Свойство Type Description
$_error Error code / message.

Méthodes publiques

Méthode Description
__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}.

Method Details

__construct() public méthode

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

getError() public méthode

Return Error code / message.
public getError ( ) : string
Résultat string Error code / message

getErrorMessage() public méthode

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
Résultat string Error message

Property Details

$_error protected_oe property

Error code / message.
protected $_error