1 | <?php |
||
21 | class LocalizedException extends \Exception |
||
22 | { |
||
23 | /** |
||
24 | * @var \Gojira\Framework\Phrase |
||
25 | */ |
||
26 | protected $phrase; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $logMessage; |
||
32 | |||
33 | /** |
||
34 | * Constructor |
||
35 | * |
||
36 | * @param \Gojira\Framework\Phrase $phrase |
||
37 | * @param \Exception $cause |
||
38 | */ |
||
39 | public function __construct(Phrase $phrase, \Exception $cause = null) |
||
44 | |||
45 | /** |
||
46 | * Get the un-processed message, without the parameters filled in |
||
47 | * |
||
48 | * @return string |
||
49 | */ |
||
50 | public function getRawMessage() |
||
54 | |||
55 | /** |
||
56 | * Get parameters, corresponding to placeholders in raw exception message |
||
57 | * |
||
58 | * @return array |
||
59 | */ |
||
60 | public function getParameters() |
||
64 | |||
65 | /** |
||
66 | * Get the un-localized message, but with the parameters filled in |
||
67 | * |
||
68 | * @return string |
||
69 | */ |
||
70 | public function getLogMessage() |
||
78 | } |
||
79 |