Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
21 | class Exception extends \Aimeos\Controller\Frontend\Exception |
||
22 | { |
||
23 | private $errors; |
||
24 | |||
25 | |||
26 | /** |
||
27 | * Initializes the instance of the exception |
||
28 | * |
||
29 | * @param string $message Custom error message to describe the error |
||
30 | * @param integer $code Custom error code to identify or classify the error |
||
31 | * @param \Exception|null $previous Previously thrown exception |
||
32 | * @param array $errors List of error codes for error handling |
||
33 | */ |
||
34 | public function __construct( $message = '', $code = 0, \Exception $previous = null, $errors = [] ) |
||
35 | { |
||
36 | parent::__construct( $message, $code, $previous ); |
||
37 | |||
38 | $this->errors = $errors; |
||
39 | } |
||
40 | |||
41 | |||
42 | /** |
||
43 | * Gets the error codes of the exception |
||
44 | * |
||
45 | * @return array list of error codes |
||
46 | */ |
||
47 | public function getErrors() |
||
50 | } |
||
51 | } |
||
52 |