PHP Class Elastica\Exception\Connection\HttpException

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

Protected Properties

Property Type Description
$_error Error code / message.

Public Methods

Method 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 method

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 method

Return Error code / message.
public getError ( ) : string
return string Error code / message

getErrorMessage() public method

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
return string Error message

Property Details

$_error protected_oe property

Error code / message.
protected $_error