When to use exception, or When not to use exception

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello list,

Recently I upgraded my dev environment and started to use PHP5 at last!
Compared with the former one, PHP5 rocks in many ways.
So I love it so much, but sadly, I don't exactly know when to use exception.
I'm never used to use Java, or languages that support exceptin
so I have to learn the usage..

So, my question is
When to use, or when not to use exception?
Now I'm using exception in 99% to handle errors because it's easier and cleaner.
The only problem I have using exception instead of normal
"if-error-then" method is
that I have to define logs of Exception-derived classes to effectively
handling erros.
It's cumbersome but not so bad compared with traditional error handling.


Any suggestions, personal guidelines, tutoriral, documentation would
be greatly appriciated.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux