Re: Exception::fillException() proposal

From: Date: Tue, 10 Jan 2006 21:56:21 +0000
Subject: Re: Exception::fillException() proposal
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-21466@lists.php.net to get a copy of this message
On 11.01.2006 00:41, Marcus Boerger wrote:
Hello Antony, in general modifying exception data is vey dangerous because first it leads to confusion on the usage part and second it might lead to sever problems in the engine facilities that deal with them. That this in a few cases worked does not mean it works in all cases it mybe be used.
Actually, the code doesn't modify any data there, but copies it instead. That is: create new object, copy data from the old one, update few properties.
To prevent us from adding all the stuff Java invented to deal more gracefull with exceptions starting with the ability to handle more than one exception at a time i would like to stay with the KISS approach and have them as easy as possible.
I realize that it's relatively easy to implement this in PHP, but in the same time I don't see in what way adding this function violates the KISS approach. Could you plz elaborate? -- Wbr, Antony Dovgal

« previous php.internals (#21466) next »