X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/lib/guzzlehttp/guzzle/src/Exception
home
/
cbholdings
/
pasukulu
/
lib
/
guzzlehttp
/
guzzle
/
src
/
Exception
/
📁
..
📄
BadResponseException.php
(981 B)
📄
ClientException.php
(163 B)
📄
ConnectException.php
(1.38 KB)
📄
GuzzleException.php
(150 B)
📄
InvalidArgumentException.php
(142 B)
📄
RequestException.php
(4.74 KB)
📄
ServerException.php
(163 B)
📄
TooManyRedirectsException.php
(101 B)
📄
TransferException.php
(121 B)
Editing: BadResponseException.php
<?php namespace GuzzleHttp\Exception; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; /** * Exception when an HTTP error occurs (4xx or 5xx error) */ class BadResponseException extends RequestException { public function __construct( string $message, RequestInterface $request, ResponseInterface $response, \Throwable $previous = null, array $handlerContext = [] ) { parent::__construct($message, $request, $response, $previous, $handlerContext); } /** * Current exception and the ones that extend it will always have a response. */ public function hasResponse(): bool { return true; } /** * This function narrows the return type from the parent class and does not allow it to be nullable. */ public function getResponse(): ResponseInterface { /** @var ResponseInterface */ return parent::getResponse(); } }
Upload File
Create Folder