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

# Class ExceptionListener

Converts generic Guzzle response exceptions into AWS specific exceptions

  Aws\Common\Exception\ExceptionListener implements Symfony\Component\EventDispatcher\EventSubscriberInterface

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

## Methods summary

- `public` `__construct ( Aws\Common\Exception\ExceptionFactoryInterface $factory )`
- `public static` `getSubscribedEvents ( )`
- `public` `onRequestError ( Guzzle\Common\Event $event )`

  Throws a more meaningful request exception if available

## Methods detail

# `public`
`__construct( `Aws\Common\Exception\ExceptionFactoryInterface` $factory )`

#### Parameters

$factory
  ``Aws\Common\Exception\ExceptionFactoryInterface``
  $factory Factory used to create exceptions

# `public static`
`getSubscribedEvents( )`
# `public`
`onRequestError( `Guzzle\Common\Event` $event )`

Throws a more meaningful request exception if available

#### Parameters

$event
  ``Guzzle\Common\Event``
  $event Event emitted

### Magic methods summary

## Properties summary

`protected `Aws\Common\Exception\ExceptionFactoryInterface`` | $factory | # Factory used to create new exceptions