Documentation

Exception extends Exception
in package
implements NetworkExceptionInterface

HTTP client handler exception class

Tags
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

version
6.0.0

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
int

getRequest()

Get the request in flight when the failure occurred

public getRequest() : RequestInterface
Tags
throws
LogicException
Return values
RequestInterface

        
On this page

Search results