ExceptionListener
in package
implements
EventSubscriberInterface
Converts generic Guzzle response exceptions into AWS specific exceptions
Table of Contents
Interfaces
- EventSubscriberInterface
- An EventSubscriber knows himself what events he is interested in.
Properties
Methods
- __construct() : mixed
- getSubscribedEvents() : array<string|int, mixed>
- Returns an array of event names this subscriber wants to listen to.
- onRequestError() : mixed
- Throws a more meaningful request exception if available
Properties
$factory
protected
ExceptionFactoryInterface
$factory
Factory used to create new exceptions
Methods
__construct()
public
__construct(ExceptionFactoryInterface $factory) : mixed
Parameters
- $factory : ExceptionFactoryInterface
-
Factory used to create exceptions
getSubscribedEvents()
Returns an array of event names this subscriber wants to listen to.
public
static getSubscribedEvents() : array<string|int, mixed>
Return values
array<string|int, mixed> —The event names to listen to
onRequestError()
Throws a more meaningful request exception if available
public
onRequestError(Event $event) : mixed
Parameters
- $event : Event
-
Event emitted