|
Posted by Richard Levasseur on 08/18/06 16:29
Dikkie Dik wrote:
> An exception always has to have a message, so it enforces one by
> requiring it in the constructor's parameters. This message is kept
> safely inside, so it is effectively read-only. Not even a subclass can
> touch it.
This is incorrect:
* The properties of the PHP5 Exception class are all protected. They
can be directly accessed by derived classes, but not outside the class.
* The constructor of a PHP5 Exception defaults to (null, 0), so niether
argument is required.
* It should be noted that the methods of the exception class cannot be
overridden, they are declared 'final,' (except __toString)
See http://us2.php.net/manual/en/language.exceptions.php
Navigation:
[Reply to this message]
|