Re: Exception
| From: | Christian Herrnbock | Date: | Sun, 04 Dec 2005 19:00:13 +0000 |
| Subject: | Re: Exception | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-226842@lists.php.net to get a copy of this message | ||
mr php wrote:
> Hello
> Is it good to use exception handling for error handling or I should use
> only for exceptions?
> For example:
> Is it good to throwing user input errors with throw new Exception().
> Thanks
Hello,
I would also go by keeping them separate; it helps both in logic-flow, and
maintenence. Not to mention, exception handlers are design to do just that
- handle exceptions.
Regards,
Christian