This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
rfc:throwable [2015/03/15 07:25]
rfc:throwable [2017/09/22 13:28] (current)
Line 12: Line 12:
 This RFC proposes the following changes to PHP 7's exception hierarchy: This RFC proposes the following changes to PHP 7's exception hierarchy:
-* Introduce a ''​Throwable''​ interface +  ​* Introduce a ''​Throwable''​ interface 
-* Let ''​Exception''​ implement the ''​Throwable''​ interface +  * Let ''​Exception''​ implement the ''​Throwable''​ interface 
-Introduce an ''​Error'' ​class that implements the ''​Throwable'' ​interface +  Remove ​''​BaseException''​ 
-* Use ''​Error'' ​class as base class for exceptions raised by the engine+  * Let ''​EngineException'' ​and ''​ParseException'' ​implement ​the ''​Throwable''​ interface
 ===== Backward Incompatible Changes ===== ===== Backward Incompatible Changes =====
-''​Error''​ and ''​Throwable'' ​are no longer available as names in the global namespace.+''​Throwable'' ​is no longer available as a name in the global namespace.
 ===== Proposed PHP Version(s) ===== ===== Proposed PHP Version(s) =====
rfc/throwable.1426404349.txt.gz · Last modified: 2017/09/22 13:28 (external edit)