aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception')
-rw-r--r--apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/BadMethodCallException.php5
-rw-r--r--apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/ExceptionCollection.php108
-rw-r--r--apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/GuzzleException.php8
-rw-r--r--apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/InvalidArgumentException.php5
-rw-r--r--apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/RuntimeException.php5
-rw-r--r--apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/UnexpectedValueException.php5
6 files changed, 0 insertions, 136 deletions
diff --git a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/BadMethodCallException.php b/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/BadMethodCallException.php
deleted file mode 100644
index 08d1c7256d7..00000000000
--- a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/BadMethodCallException.php
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-
-namespace Guzzle\Common\Exception;
-
-class BadMethodCallException extends \BadMethodCallException implements GuzzleException {}
diff --git a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/ExceptionCollection.php b/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/ExceptionCollection.php
deleted file mode 100644
index 750e4839eea..00000000000
--- a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/ExceptionCollection.php
+++ /dev/null
@@ -1,108 +0,0 @@
-<?php
-
-namespace Guzzle\Common\Exception;
-
-/**
- * Collection of exceptions
- */
-class ExceptionCollection extends \Exception implements GuzzleException, \IteratorAggregate, \Countable
-{
- /** @var array Array of Exceptions */
- protected $exceptions = array();
-
- /** @var string Succinct exception message not including sub-exceptions */
- private $shortMessage;
-
- public function __construct($message = '', $code = 0, \Exception $previous = null)
- {
- parent::__construct($message, $code, $previous);
- $this->shortMessage = $message;
- }
-
- /**
- * Set all of the exceptions
- *
- * @param array $exceptions Array of exceptions
- *
- * @return self
- */
- public function setExceptions(array $exceptions)
- {
- $this->exceptions = array();
- foreach ($exceptions as $exception) {
- $this->add($exception);
- }
-
- return $this;
- }
-
- /**
- * Add exceptions to the collection
- *
- * @param ExceptionCollection|\Exception $e Exception to add
- *
- * @return ExceptionCollection;
- */
- public function add($e)
- {
- $this->exceptions[] = $e;
- if ($this->message) {
- $this->message .= "\n";
- }
-
- $this->message .= $this->getExceptionMessage($e, 0);
-
- return $this;
- }
-
- /**
- * Get the total number of request exceptions
- *
- * @return int
- */
- public function count()
- {
- return count($this->exceptions);
- }
-
- /**
- * Allows array-like iteration over the request exceptions
- *
- * @return \ArrayIterator
- */
- public function getIterator()
- {
- return new \ArrayIterator($this->exceptions);
- }
-
- /**
- * Get the first exception in the collection
- *
- * @return \Exception
- */
- public function getFirst()
- {
- return $this->exceptions ? $this->exceptions[0] : null;
- }
-
- private function getExceptionMessage(\Exception $e, $depth = 0)
- {
- static $sp = ' ';
- $prefix = $depth ? str_repeat($sp, $depth) : '';
- $message = "{$prefix}(" . get_class($e) . ') ' . $e->getFile() . ' line ' . $e->getLine() . "\n";
-
- if ($e instanceof self) {
- if ($e->shortMessage) {
- $message .= "\n{$prefix}{$sp}" . str_replace("\n", "\n{$prefix}{$sp}", $e->shortMessage) . "\n";
- }
- foreach ($e as $ee) {
- $message .= "\n" . $this->getExceptionMessage($ee, $depth + 1);
- }
- } else {
- $message .= "\n{$prefix}{$sp}" . str_replace("\n", "\n{$prefix}{$sp}", $e->getMessage()) . "\n";
- $message .= "\n{$prefix}{$sp}" . str_replace("\n", "\n{$prefix}{$sp}", $e->getTraceAsString()) . "\n";
- }
-
- return str_replace(getcwd(), '.', $message);
- }
-}
diff --git a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/GuzzleException.php b/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/GuzzleException.php
deleted file mode 100644
index 458e6f2ea16..00000000000
--- a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/GuzzleException.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-
-namespace Guzzle\Common\Exception;
-
-/**
- * Guzzle exception
- */
-interface GuzzleException {}
diff --git a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/InvalidArgumentException.php b/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/InvalidArgumentException.php
deleted file mode 100644
index ae674be8790..00000000000
--- a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/InvalidArgumentException.php
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-
-namespace Guzzle\Common\Exception;
-
-class InvalidArgumentException extends \InvalidArgumentException implements GuzzleException {}
diff --git a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/RuntimeException.php b/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/RuntimeException.php
deleted file mode 100644
index 9254094f3e3..00000000000
--- a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/RuntimeException.php
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-
-namespace Guzzle\Common\Exception;
-
-class RuntimeException extends \RuntimeException implements GuzzleException {}
diff --git a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/UnexpectedValueException.php b/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/UnexpectedValueException.php
deleted file mode 100644
index 843c0179ebf..00000000000
--- a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/Exception/UnexpectedValueException.php
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-
-namespace Guzzle\Common\Exception;
-
-class UnexpectedValueException extends \UnexpectedValueException implements GuzzleException {}