1 | <?php |
||
16 | class MetaCoreRuntimeException extends \RuntimeException |
||
17 | { |
||
18 | const UNKNOWN_TYPE = 1000; |
||
19 | const NO_VAR_TAG = 1001; |
||
20 | const COMPOUND_TYPE_WITH_NULLS_ONLY = 1002; |
||
21 | |||
22 | /** |
||
23 | * @param \Exception|null $previous |
||
24 | * |
||
25 | * @return MetaCoreRuntimeException |
||
26 | */ |
||
27 | 1 | public static function unknownType(\Exception $previous = null) |
|
31 | |||
32 | /** |
||
33 | * @param \Exception|null $previous |
||
34 | * |
||
35 | * @return MetaCoreRuntimeException |
||
36 | */ |
||
37 | 1 | public static function noVarTagFound(\Exception $previous = null) |
|
41 | |||
42 | /** |
||
43 | * @param \Exception|null $previous |
||
44 | * |
||
45 | * @return MetaCoreRuntimeException |
||
46 | */ |
||
47 | 1 | public static function compoundTypeWithNullsOnly(\Exception $previous = null) |
|
51 | |||
52 | /** |
||
53 | * Find the meta core root cause |
||
54 | * |
||
55 | * Walks through all previous Exception and find the the last in row that is a MetaCoreRuntimeException as well. |
||
56 | * |
||
57 | * @return MetaCoreRuntimeException |
||
58 | */ |
||
59 | 3 | public function getMetaCoreRootCause() |
|
69 | |||
70 | /** |
||
71 | * @return string |
||
72 | */ |
||
73 | 3 | public function toString() |
|
77 | |||
78 | /** |
||
79 | * @return string |
||
80 | */ |
||
81 | 3 | public function getCausesAsString() |
|
93 | } |
||
94 |