rfc:throwable
PHP RFC: Introduce Throwable interface and Error class
- Version: 0.9
- Date: 2015-03-15
- Author: Sebastian Bergmann sebastian@php.net
- Status: Draft
- First Published at: http://wiki.php.net/rfc/throwable
Introduction
PHP 7 replaces existing fatal or recoverable fatal errors with exceptions. While the respective RFC was already in voting, I proposed a change to the exception hierarchy it used (see below).
Proposal
This RFC proposes the following changes to PHP 7's exception hierarchy:
- Introduce a
Throwable
interface - Let
Exception
implement theThrowable
interface - Remove
BaseException
- Let
EngineException
andParseException
implement theThrowable
interface
Backward Incompatible Changes
Throwable
is no longer available as a name in the global namespace.
Proposed PHP Version(s)
PHP 7
References
rfc/throwable.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1