@@ -57,13 +57,37 @@ |
||
57 | 57 | */ |
58 | 58 | interface Throwable |
59 | 59 | { |
60 | + |
|
61 | + /** |
|
62 | + * @return string |
|
63 | + */ |
|
60 | 64 | public function getMessage(); |
61 | 65 | public function getCode(); |
66 | + |
|
67 | + /** |
|
68 | + * @return string |
|
69 | + */ |
|
62 | 70 | public function getFile(); |
71 | + |
|
72 | + /** |
|
73 | + * @return integer |
|
74 | + */ |
|
63 | 75 | public function getLine(); |
64 | 76 | public function getTrace(); |
77 | + |
|
78 | + /** |
|
79 | + * @return string |
|
80 | + */ |
|
65 | 81 | public function getTraceAsString(); |
82 | + |
|
83 | + /** |
|
84 | + * @return Exception |
|
85 | + */ |
|
66 | 86 | public function getPrevious(); |
87 | + |
|
88 | + /** |
|
89 | + * @return string |
|
90 | + */ |
|
67 | 91 | public function __toString(); |
68 | 92 | } |
69 | 93 | } |
@@ -69,9 +69,9 @@ |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | if (!class_exists('Error')) { |
72 | - /** |
|
73 | - * taken from: http://php.net/manual/en/class.error.php |
|
74 | - */ |
|
72 | + /** |
|
73 | + * taken from: http://php.net/manual/en/class.error.php |
|
74 | + */ |
|
75 | 75 | class Error extends Exception implements Throwable |
76 | 76 | { |
77 | 77 | public function __toString() |