Completed
Push — master ( 6b4094...cc9a05 )
by Avtandil
03:04
created

ElasticSearchException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 15
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getErrors() 0 4 1
1
<?php
2
/*
3
 * This file is part of the Laravel Lodash package.
4
 *
5
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
declare(strict_types=1);
11
12
namespace Longman\LaravelLodash\ElasticSearch;
13
14
use Exception;
15
16
class ElasticSearchException extends Exception
17
{
18
    protected $errors = [];
19
20
    public function __construct(string $message = '', array $errors = [])
21
    {
22
        parent::__construct($message);
23
        $this->errors = $errors;
24
    }
25
26
    public function getErrors(): array
27
    {
28
        return $this->errors;
29
    }
30
}
31