Documentation

RequestException extends Exception
in package
implements RequestExceptionInterface

HTTP client request exception class - thrown by Client::sendRequest() for pre-dispatch validation failures (e.g. no request URI to send)

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

RequestExceptionInterface

Properties

$request  : RequestInterface
The request that failed to dispatch

Methods

__construct()  : mixed
Constructor
getRequest()  : RequestInterface
Get the request that failed to dispatch

Properties

$request

The request that failed to dispatch

protected RequestInterface $request

Methods

__construct()

Constructor

public __construct(string $message, RequestInterface $request[, int $code = 0 ][, Throwable|null $previous = null ]) : mixed
Parameters
$message : string
$request : RequestInterface
$code : int = 0
$previous : Throwable|null = null

getRequest()

Get the request that failed to dispatch

public getRequest() : RequestInterface
Return values
RequestInterface

        
On this page

Search results