Menu

## ExceptionWrapper

ExceptionWrapper.php : 30

Class ExceptionWrapper

##### Tags

category

  Library

license

  https://opensource.org/licenses/MIT MIT License

link
  https://graph.microsoft.io/

### Table of Contents

wrapGuzzleBadResponseException() : BadResponseException
  Wrap Guzzle BadResponseException which returns truncated exception messages for 4xx and 5xx responses.

### Methods

#### wrapGuzzleBadResponseException()

ExceptionWrapper.php : 39

Wrap Guzzle BadResponseException which returns truncated exception messages for 4xx and 5xx responses.

`public static wrapGuzzleBadResponseException(BadResponseException $ex) : BadResponseException`

Adds response body to the exception message.

##### Parameters

$ex : BadResponseException

##### Return values

BadResponseException —

containing HTTP response from Graph API

## Search results