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

Link to this comparison view

Next revision
Previous revision
rfc:throwable [2015/03/15 07:24]
sebastian created
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 <​code>​Throwable</​code> ​interface +  ​* Introduce a ''​Throwable'' ​interface 
-* Let <​code>​Exception</​code> ​implement the <​code>​Throwable</​code> ​interface +  * Let ''​Exception'' ​implement the ''​Throwable'' ​interface 
-Introduce an <​code>​Error</​code>​ class that implements the <​code>​Throwable</​code>​ interface +  Remove ''​BaseException''​ 
-Use <​code>​Error</​code>​ class as base class for exceptions raised by the engine+  Let ''​EngineException''​ and ''​ParseException''​ implement ​the ''​Throwable''​ interface
 ===== Backward Incompatible Changes ===== ===== Backward Incompatible Changes =====
-<​code>​Error</​code>​ and <​code>​Throwable</​code>​ 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.1426404259.txt.gz · Last modified: 2017/09/22 13:28 (external edit)