Exception when an HTTP error occurs (4xx or 5xx error)
Instantiable
- Extends
Exception RuntimeException GuzzleHttp \Exception \TransferException GuzzleHttp \Exception \RequestException - Children
- Implements
GuzzleHttp \Exception \GuzzleException Psr\Http\Client\ClientExceptionInterface Psr\Http\Client\RequestExceptionInterface Stringable Throwable
Methods |
public __construct(string $message, Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response, ?Throwable $previous = NULL, array $handlerContext = []) |
public getResponse() : Psr\Http\Message\ResponseInterface This function narrows the return type from the parent class and does not allow it to be nullable. |
public hasResponse() : bool Current exception and the ones that extend it will always have a response. |
Properties |
Methods |