summaryrefslogtreecommitdiff
path: root/vendor/ruflin/elastica/lib/Elastica/Exception/Bulk/ResponseException.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/ruflin/elastica/lib/Elastica/Exception/Bulk/ResponseException.php')
-rw-r--r--vendor/ruflin/elastica/lib/Elastica/Exception/Bulk/ResponseException.php21
1 files changed, 8 insertions, 13 deletions
diff --git a/vendor/ruflin/elastica/lib/Elastica/Exception/Bulk/ResponseException.php b/vendor/ruflin/elastica/lib/Elastica/Exception/Bulk/ResponseException.php
index 9df1b3e8..54b5702b 100644
--- a/vendor/ruflin/elastica/lib/Elastica/Exception/Bulk/ResponseException.php
+++ b/vendor/ruflin/elastica/lib/Elastica/Exception/Bulk/ResponseException.php
@@ -1,5 +1,4 @@
<?php
-
namespace Elastica\Exception\Bulk;
use Elastica\Bulk\ResponseSet;
@@ -7,16 +6,11 @@ use Elastica\Exception\Bulk\Response\ActionException;
use Elastica\Exception\BulkException;
/**
- * Bulk Response exception
- *
- * @category Xodoa
- * @package Elastica
+ * Bulk Response exception.
*/
class ResponseException extends BulkException
{
/**
- * Response
- *
* @var \Elastica\Bulk\ResponseSet ResponseSet object
*/
protected $_responseSet;
@@ -27,7 +21,7 @@ class ResponseException extends BulkException
protected $_actionExceptions = array();
/**
- * Construct Exception
+ * Construct Exception.
*
* @param \Elastica\Bulk\ResponseSet $responseSet
*/
@@ -35,8 +29,8 @@ class ResponseException extends BulkException
{
$this->_init($responseSet);
- $message = 'Error in one or more bulk request actions:' . PHP_EOL . PHP_EOL;
- $message.= $this->getActionExceptionsAsString();
+ $message = 'Error in one or more bulk request actions:'.PHP_EOL.PHP_EOL;
+ $message .= $this->getActionExceptionsAsString();
parent::__construct($message);
}
@@ -56,7 +50,7 @@ class ResponseException extends BulkException
}
/**
- * Returns bulk response set object
+ * Returns bulk response set object.
*
* @return \Elastica\Bulk\ResponseSet
*/
@@ -66,7 +60,7 @@ class ResponseException extends BulkException
}
/**
- * Returns array of failed actions
+ * Returns array of failed actions.
*
* @return array Array of failed actions
*/
@@ -96,8 +90,9 @@ class ResponseException extends BulkException
{
$message = '';
foreach ($this->getActionExceptions() as $actionException) {
- $message.= $actionException->getMessage() . PHP_EOL;
+ $message .= $actionException->getMessage().PHP_EOL;
}
+
return $message;
}
}