Re: Exception handling in PHP
| From: | Paul Scott | Date: | Thu, 07 Feb 2008 08:01:07 +0000 |
| Subject: | Re: Exception handling in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268850@lists.php.net to get a copy of this message | ||
On Wed, 2008-02-06 at 23:37 -0800, Prabath Kumarasinghe wrote:
> Does that mean for every exception do we have to write
> our custom exception and describe it from our own
> message
>
No, it means that when you want to throw a meaningful exception, you
need to type in a message. I mentioned custom exceptions, because that
is what I do, as I multilingualise my messages and do other things with
the exception, like display an XHTML page to the users.
--Paul