public static function RequestException::wrapException in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/guzzle/src/Exception/RequestException.php \GuzzleHttp\Exception\RequestException::wrapException()
Wrap non-RequestExceptions with a RequestException
Parameters
RequestInterface $request:
\Exception $e:
Return value
1 call to RequestException::wrapException()
- StreamHandler::__invoke in vendor/
guzzlehttp/ guzzle/ src/ Handler/ StreamHandler.php - Sends an HTTP request.
File
- vendor/
guzzlehttp/ guzzle/ src/ Exception/ RequestException.php, line 47
Class
- RequestException
- HTTP Request exception
Namespace
GuzzleHttp\ExceptionCode
public static function wrapException(RequestInterface $request, \Exception $e) {
return $e instanceof RequestException ? $e : new RequestException($e
->getMessage(), $request, null, $e);
}