1 | <?php |
||
25 | class Exception extends CoreException |
||
26 | { |
||
27 | |||
28 | |||
29 | # <editor-fold desc="= = = C O N S T R U C T O R + D E S T R U C T O R = = = = = = = = = = = = = = ="> |
||
30 | |||
31 | /** |
||
32 | * Init's a new instance. |
||
33 | * |
||
34 | * @param string $message The error message |
||
35 | * @param int $code The optional Error code (defaults to \E_ERROR) |
||
36 | * @param \Exception $previous A optional previous exception |
||
37 | */ |
||
38 | 2 | public function __construct( string $message, int $code = \E_ERROR, \Exception $previous = null ) |
|
44 | |||
45 | # </editor-fold> |
||
46 | |||
47 | |||
48 | # <editor-fold desc="= = = P R O T E C T E D S T A T I C M E T H O D S = = = = = = = = = = = = = = ="> |
||
49 | |||
50 | /** |
||
51 | * Appends a message, if its not empty, separated by ' '. |
||
52 | * |
||
53 | * @param string $message |
||
54 | * @return string |
||
55 | */ |
||
56 | protected static function appendMessage( $message ) : string |
||
62 | |||
63 | # </editor-fold> |
||
64 | |||
65 | |||
66 | } |
||
67 | |||
68 |