Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RequestException.php

function RequestException::wrapException

Wrap non-RequestExceptions with a RequestException

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 49

Class

RequestException
HTTP Request exception

Namespace

GuzzleHttp\Exception

Code

public static function wrapException(RequestInterface $request, \Throwable $e) : RequestException {
    return $e instanceof RequestException ? $e : new RequestException($e->getMessage(), $request, null, $e);
}
RSS feed
Powered by Drupal