Re: Re: IException
| From: | Derick Rethans | Date: | Tue, 17 Feb 2004 09:51:40 +0000 |
| Subject: | Re: Re: IException | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7910@lists.php.net to get a copy of this message | ||
On Tue, 17 Feb 2004, Stanislav Malyshev wrote:
> >> >Again, I don't see any complexity arising from this: The average user
> >> >would simply use "catch (IException $e)" instead of "catch
> >> >(Exception
>
> That looks weird. Why IException? Ah, because it's an interface. And
> what's an interface? And why should I know about interfaces if
> I just want to catch damn exceptions and that's all?
>
> Simple stuff should be simple. If you want to catch exception, you
> shouldn't go and learn how interfaces work in PHP and what are the
> inheritance rules and ton of other stuff. You should just do
> catch(Exception $e) and that's it.
Right, can't agree more with this.
Derick