From 8df3db566a3a937b45ebf11adb90d265e6f5e2d4 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 17 Nov 2019 20:45:02 +0100 Subject: initial checking of customized version 1.0rc9 --- .../Batch/Exception/BatchTransferException.php | 90 ++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 vendor/guzzle/guzzle/src/Guzzle/Batch/Exception/BatchTransferException.php (limited to 'vendor/guzzle/guzzle/src/Guzzle/Batch/Exception') diff --git a/vendor/guzzle/guzzle/src/Guzzle/Batch/Exception/BatchTransferException.php b/vendor/guzzle/guzzle/src/Guzzle/Batch/Exception/BatchTransferException.php new file mode 100644 index 0000000..2e1f817 --- /dev/null +++ b/vendor/guzzle/guzzle/src/Guzzle/Batch/Exception/BatchTransferException.php @@ -0,0 +1,90 @@ +batch = $batch; + $this->transferredItems = $transferredItems; + $this->transferStrategy = $transferStrategy; + $this->divisorStrategy = $divisorStrategy; + parent::__construct( + 'Exception encountered while transferring batch: ' . $exception->getMessage(), + $exception->getCode(), + $exception + ); + } + + /** + * Get the batch that we being sent when the exception occurred + * + * @return array + */ + public function getBatch() + { + return $this->batch; + } + + /** + * Get the items transferred at the point in which the exception was encountered + * + * @return array + */ + public function getTransferredItems() + { + return $this->transferredItems; + } + + /** + * Get the transfer strategy + * + * @return TransferStrategy + */ + public function getTransferStrategy() + { + return $this->transferStrategy; + } + + /** + * Get the divisor strategy + * + * @return DivisorStrategy + */ + public function getDivisorStrategy() + { + return $this->divisorStrategy; + } +} -- cgit v1.2.3-54-g00ecf