Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5955704
ConnectException.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ConnectException.php
View Options
<?php
namespace
GuzzleHttp\Exception
;
use
Psr\Http\Client\NetworkExceptionInterface
;
use
Psr\Http\Message\RequestInterface
;
/**
* Exception thrown when a connection cannot be established.
*
* Note that no response is present for a ConnectException
*/
class
ConnectException
extends
TransferException
implements
NetworkExceptionInterface
{
/**
* @var RequestInterface
*/
private
$request
;
/**
* @var array
*/
private
$handlerContext
;
public
function
__construct
(
string
$message
,
RequestInterface
$request
,
?
\Throwable
$previous
=
null
,
array
$handlerContext
=
[]
)
{
parent
::
__construct
(
$message
,
0
,
$previous
);
$this
->
request
=
$request
;
$this
->
handlerContext
=
$handlerContext
;
}
/**
* Get the request that caused the exception
*/
public
function
getRequest
():
RequestInterface
{
return
$this
->
request
;
}
/**
* Get contextual information about the error from the underlying handler.
*
* The contents of this array will vary depending on which handler you are
* using. It may also be just an empty array. Relying on this data will
* couple you to a specific handler, but can give more debug information
* when needed.
*/
public
function
getHandlerContext
():
array
{
return
$this
->
handlerContext
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 03:55 (3 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
73/32/9886340340eb9a34c9b0412702d3
Default Alt Text
ConnectException.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment