NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Interface ExceptionFactoryInterface

Interface used to create AWS exception

### Direct known implementers

`Aws\Common\Exception\NamespaceExceptionFactory`

Namespace: Aws\Common\Exception
Located at Aws/Common/Exception/ExceptionFactoryInterface.php

## Methods summary

- `public` `fromResponse ( Guzzle\Http\Message\RequestInterface $request, Guzzle\Http\Message\Response $response )`

  Returns an AWS service specific exception

## Methods detail

# `public `Exception`|`Aws\Common\Exception\AwsExceptionInterface``
`fromResponse( `Guzzle\Http\Message\RequestInterface` $request, `Guzzle\Http\Message\Response` $response )`

Returns an AWS service specific exception

#### Parameters

$request
  ``Guzzle\Http\Message\RequestInterface``
  $request Unsuccessful request
$response
  ``Guzzle\Http\Message\Response``
  $response Unsuccessful response that was encountered

#### Returns

``Exception`|`Aws\Common\Exception\AwsExceptionInterface``

### Magic methods summary