RE: [PHP-DEV] exceptions instead of errors

From: Date: Tue, 13 May 2003 00:16:55 +0000
Subject: RE: [PHP-DEV] exceptions instead of errors
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-1459@lists.php.net to get a copy of this message
I don't know if anyone has discussed this in any length or not, but what about adding a new error type (E_EXCEPTION)... I'm 100% for the idea of having PHP throw exceptions internally, however there are E_ERRORs that are indeed fatal in their context and shouldn't be caught. If this different error level existed, it could be treated like an E_ERROR if not within a try{} block, however will still preserve the meaning of the error code and give maintainers an opportunity to change their extensions to support exceptions as appropriate. John -- -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~- John Coggeshall john at coggeshall dot org http://www.coggeshall.org/ -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-

« previous php.internals (#1459) next »