rfc:throwable

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
rfc:throwable [2015/03/15 07:25] sebastianrfc:throwable [2015/03/15 11:38] sebastian
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.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1