Exception
extends Exception
in package
implements
NetworkExceptionInterface
HTTP client handler exception class
Tags
Table of Contents
Interfaces
- NetworkExceptionInterface
Properties
- $curlErrno : int
- The underlying curl error number, if this exception came from a curl failure
- $request : RequestInterface|null
- The request in flight when the failure occurred, if the handler had been prepared
Methods
- __construct() : mixed
- Constructor
- getCurlErrno() : int
- Get the underlying curl error number
- getRequest() : RequestInterface
- Get the request in flight when the failure occurred
Properties
$curlErrno
The underlying curl error number, if this exception came from a curl failure
protected
int
$curlErrno
= 0
$request
The request in flight when the failure occurred, if the handler had been prepared
protected
RequestInterface|null
$request
= null
Methods
__construct()
Constructor
public
__construct([string $message = '' ][, int $code = 0 ][, Throwable|null $previous = null ][, int $curlErrno = 0 ][, RequestInterface|null $request = null ]) : mixed
Parameters
- $message : string = ''
- $code : int = 0
- $previous : Throwable|null = null
- $curlErrno : int = 0
- $request : RequestInterface|null = null
getCurlErrno()
Get the underlying curl error number
public
getCurlErrno() : int
Return values
intgetRequest()
Get the request in flight when the failure occurred
public
getRequest() : RequestInterface