1 | <?php |
||
10 | class Exception extends \Exception implements ExceptionInterface |
||
11 | { |
||
12 | const VARIABLE_REGEX = "/(\{[a-zA-Z0-9\_]+\})/"; |
||
13 | |||
14 | /** |
||
15 | * Constructor |
||
16 | * |
||
17 | * @param integer $code |
||
18 | * @param string $message |
||
19 | */ |
||
20 | public function __construct( |
||
26 | |||
27 | /** |
||
28 | * Set code |
||
29 | * |
||
30 | * @param integer $code |
||
31 | * |
||
32 | * @return self |
||
33 | */ |
||
34 | public function setCode($code) |
||
40 | |||
41 | /** |
||
42 | * Set message |
||
43 | * |
||
44 | * @param string $message |
||
45 | * |
||
46 | * @return self |
||
47 | */ |
||
48 | public function setMessage($message) |
||
54 | |||
55 | /** |
||
56 | * Get message with variables |
||
57 | * |
||
58 | * @throws \Exception |
||
59 | * |
||
60 | * @return string |
||
61 | */ |
||
62 | public function getMessageWithVariables() |
||
93 | } |
||
94 |