1 | <?php |
||
22 | class AbstractExceptionNormalizer |
||
23 | { |
||
24 | use ClassMapHandlerTrait; |
||
25 | |||
26 | private $messagesMap; |
||
27 | private $debug; |
||
28 | |||
29 | /** |
||
30 | * @param array $messagesMap |
||
31 | * @param bool $debug |
||
32 | */ |
||
33 | 7 | public function __construct(array $messagesMap, $debug) |
|
38 | |||
39 | /** |
||
40 | * Extracts the exception message. |
||
41 | * |
||
42 | * @param \Exception $exception |
||
43 | * @param int|null $statusCode |
||
44 | * |
||
45 | * @return string |
||
46 | */ |
||
47 | 4 | protected function getExceptionMessage(\Exception $exception, $statusCode = null) |
|
57 | } |
||
58 |