Passed
Push — develop ( 2a2404...fd09c8 )
by Jens
16:45
created

ClientErrorException::getErrorContainer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * @author @jenschude <[email protected]>
4
 */
5
6
namespace Commercetools\Core\Error;
7
8
/**
9
 * Base exception for all responses with http status code 4xx
10
 * @package Commercetools\Core\Error
11
 */
12
class ClientErrorException extends ApiServiceException
13
{
14 52
    public function getErrorContainer()
15
    {
16 52
        $errors = parent::getErrors();
17
18 52
        return ErrorContainer::fromArray($errors);
19
    }
20
}
21