diff options
Diffstat (limited to 'apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception')
8 files changed, 0 insertions, 222 deletions
diff --git a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/CommandException.php b/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/CommandException.php deleted file mode 100644 index 0f016fb952b..00000000000 --- a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/CommandException.php +++ /dev/null @@ -1,7 +0,0 @@ -<?php - -namespace Guzzle\Service\Exception; - -use Guzzle\Common\Exception\RuntimeException; - -class CommandException extends RuntimeException {} diff --git a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/CommandTransferException.php b/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/CommandTransferException.php deleted file mode 100644 index eabe93d3dbd..00000000000 --- a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/CommandTransferException.php +++ /dev/null @@ -1,119 +0,0 @@ -<?php - -namespace Guzzle\Service\Exception; - -use Guzzle\Http\Exception\MultiTransferException; -use Guzzle\Service\Command\CommandInterface; - -/** - * Exception thrown when transferring commands in parallel - */ -class CommandTransferException extends MultiTransferException -{ - protected $successfulCommands = array(); - protected $failedCommands = array(); - - /** - * Creates a new CommandTransferException from a MultiTransferException - * - * @param MultiTransferException $e Exception to base a new exception on - * - * @return self - */ - public static function fromMultiTransferException(MultiTransferException $e) - { - $ce = new self($e->getMessage(), $e->getCode(), $e->getPrevious()); - $ce->setSuccessfulRequests($e->getSuccessfulRequests()); - - $alreadyAddedExceptions = array(); - foreach ($e->getFailedRequests() as $request) { - if ($re = $e->getExceptionForFailedRequest($request)) { - $alreadyAddedExceptions[] = $re; - $ce->addFailedRequestWithException($request, $re); - } else { - $ce->addFailedRequest($request); - } - } - - // Add any exceptions that did not map to a request - if (count($alreadyAddedExceptions) < count($e)) { - foreach ($e as $ex) { - if (!in_array($ex, $alreadyAddedExceptions)) { - $ce->add($ex); - } - } - } - - return $ce; - } - - /** - * Get all of the commands in the transfer - * - * @return array - */ - public function getAllCommands() - { - return array_merge($this->successfulCommands, $this->failedCommands); - } - - /** - * Add to the array of successful commands - * - * @param CommandInterface $command Successful command - * - * @return self - */ - public function addSuccessfulCommand(CommandInterface $command) - { - $this->successfulCommands[] = $command; - - return $this; - } - - /** - * Add to the array of failed commands - * - * @param CommandInterface $command Failed command - * - * @return self - */ - public function addFailedCommand(CommandInterface $command) - { - $this->failedCommands[] = $command; - - return $this; - } - - /** - * Get an array of successful commands - * - * @return array - */ - public function getSuccessfulCommands() - { - return $this->successfulCommands; - } - - /** - * Get an array of failed commands - * - * @return array - */ - public function getFailedCommands() - { - return $this->failedCommands; - } - - /** - * Get the Exception that caused the given $command to fail - * - * @param CommandInterface $command Failed command - * - * @return \Exception|null - */ - public function getExceptionForFailedCommand(CommandInterface $command) - { - return $this->getExceptionForFailedRequest($command->getRequest()); - } -} diff --git a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/DescriptionBuilderException.php b/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/DescriptionBuilderException.php deleted file mode 100644 index 1407e568789..00000000000 --- a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/DescriptionBuilderException.php +++ /dev/null @@ -1,7 +0,0 @@ -<?php - -namespace Guzzle\Service\Exception; - -use Guzzle\Common\Exception\RuntimeException; - -class DescriptionBuilderException extends RuntimeException {} diff --git a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/InconsistentClientTransferException.php b/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/InconsistentClientTransferException.php deleted file mode 100644 index 71cbc01b8c0..00000000000 --- a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/InconsistentClientTransferException.php +++ /dev/null @@ -1,38 +0,0 @@ -<?php - -namespace Guzzle\Service\Exception; - -use Guzzle\Common\Exception\RuntimeException; - -/** - * Command transfer exception when commands do not all use the same client - */ -class InconsistentClientTransferException extends RuntimeException -{ - /** - * @var array Commands with an invalid client - */ - private $invalidCommands = array(); - - /** - * @param array $commands Invalid commands - */ - public function __construct(array $commands) - { - $this->invalidCommands = $commands; - parent::__construct( - 'Encountered commands in a batch transfer that use inconsistent clients. The batching ' . - 'strategy you use with a command transfer must divide command batches by client.' - ); - } - - /** - * Get the invalid commands - * - * @return array - */ - public function getCommands() - { - return $this->invalidCommands; - } -} diff --git a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/ResponseClassException.php b/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/ResponseClassException.php deleted file mode 100644 index d59ff218513..00000000000 --- a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/ResponseClassException.php +++ /dev/null @@ -1,9 +0,0 @@ -<?php - -namespace Guzzle\Service\Exception; - -use Guzzle\Common\Exception\RuntimeException; - -class ResponseClassException extends RuntimeException -{ -} diff --git a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/ServiceBuilderException.php b/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/ServiceBuilderException.php deleted file mode 100644 index e857e5ffd8a..00000000000 --- a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/ServiceBuilderException.php +++ /dev/null @@ -1,7 +0,0 @@ -<?php - -namespace Guzzle\Service\Exception; - -use Guzzle\Common\Exception\RuntimeException; - -class ServiceBuilderException extends RuntimeException {} diff --git a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/ServiceNotFoundException.php b/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/ServiceNotFoundException.php deleted file mode 100644 index 59a0d55693c..00000000000 --- a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/ServiceNotFoundException.php +++ /dev/null @@ -1,5 +0,0 @@ -<?php - -namespace Guzzle\Service\Exception; - -class ServiceNotFoundException extends ServiceBuilderException {} diff --git a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/ValidationException.php b/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/ValidationException.php deleted file mode 100644 index 9033bce5b56..00000000000 --- a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Service/Exception/ValidationException.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php - -namespace Guzzle\Service\Exception; - -use Guzzle\Common\Exception\RuntimeException; - -class ValidationException extends RuntimeException -{ - protected $errors = array(); - - /** - * Set the validation error messages - * - * @param array $errors Array of validation errors - */ - public function setErrors(array $errors) - { - $this->errors = $errors; - } - - /** - * Get any validation errors - * - * @return array - */ - public function getErrors() - { - return $this->errors; - } -} |