Skip to content

Commit

Permalink
fix(saveObjects-error-msg): fix PR
Browse files Browse the repository at this point in the history
  • Loading branch information
chloelbn committed Sep 10, 2019
1 parent 3d02f69 commit 6775654
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Exceptions/InvalidArgumentObjectsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,20 @@

namespace Algolia\AlgoliaSearch\Exceptions;

use Throwable;

final class InvalidArgumentObjectsException extends AlgoliaException
{
/**
* InvalidArgumentObjectsException constructor.
*
* @param string $message [optional] The Exception message to throw
* @param int $code [optional] The Exception code
* @param throwable $previous [optional] The previous throwable used for the exception chaining
*/
public function __construct($message = '', $code = 0, $previous = null)
{
if (!$message) {
if ('' === $message) {
$message = 'Please provide an array of objects instead of a single object.';
}

Expand Down

0 comments on commit 6775654

Please sign in to comment.