diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2019-11-17 20:45:02 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2019-11-17 20:45:02 +0100 |
commit | 8df3db566a3a937b45ebf11adb90d265e6f5e2d4 (patch) | |
tree | 4d541098d751d5a9acf8c12f6fb9f308ace066ac /vendor/guzzle/guzzle/src/Guzzle/Service/Exception/InconsistentClientTransferException.php | |
download | flyspray-8df3db566a3a937b45ebf11adb90d265e6f5e2d4.tar.xz |
initial checking of customized version 1.0rc9
Diffstat (limited to 'vendor/guzzle/guzzle/src/Guzzle/Service/Exception/InconsistentClientTransferException.php')
-rw-r--r-- | vendor/guzzle/guzzle/src/Guzzle/Service/Exception/InconsistentClientTransferException.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/vendor/guzzle/guzzle/src/Guzzle/Service/Exception/InconsistentClientTransferException.php b/vendor/guzzle/guzzle/src/Guzzle/Service/Exception/InconsistentClientTransferException.php new file mode 100644 index 0000000..71cbc01 --- /dev/null +++ b/vendor/guzzle/guzzle/src/Guzzle/Service/Exception/InconsistentClientTransferException.php @@ -0,0 +1,38 @@ +<?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; + } +} |