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

# Interface ErrorResponseExceptionInterface

Interface used to create an exception from an error response

Namespace: Guzzle\Plugin\ErrorResponse
Located at Guzzle/Plugin/ErrorResponse/ErrorResponseExceptionInterface.php

## Methods summary

- `public static` `fromCommand ( Guzzle\Service\Command\CommandInterface $command, Guzzle\Http\Message\Response $response )`

  Create an exception for a command based on a command and an error response definition

## Methods detail

# `public static `Guzzle\Plugin\ErrorResponse\ErrorResponseExceptionInterface``
`fromCommand( `Guzzle\Service\Command\CommandInterface` $command, `Guzzle\Http\Message\Response` $response )`

Create an exception for a command based on a command and an error response definition

#### Parameters

$command
  ``Guzzle\Service\Command\CommandInterface``
  $command Command that was sent
$response
  ``Guzzle\Http\Message\Response``
  $response The error response

#### Returns

``Guzzle\Plugin\ErrorResponse\ErrorResponseExceptionInterface``

### Magic methods summary