On Sun, 22 Feb 2004, [ISO-8859-1] Erik Franzén wrote:

> With this behavior you force the developer to use the exception class.
> You cannot use your own class because PHP will trigger an error if you do.
>
> However, you can of course extend the exception class with your own
> class, but you cannot replace the default methods (getMessage etc) since
> they are final.
>
> I don't like this, since you are forced to use the built in exception
> class which also has final methods. Where has the feeling of freedom gone?

Freedom goes with functionality ;-) but I think it's indeed not wise to
have getMessage defined as final. (I don't think it makes sense for the
other methods to be overridden though).

Derick

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to