Why not to use Array of errors instead of Exception Handling !?
Posted
by Naughty.Coder
on Stack Overflow
See other posts from Stack Overflow
or by Naughty.Coder
Published on 2010-03-25T00:36:48Z
Indexed on
2010/03/25
0:43 UTC
Read the original article
Hit count: 519
Why not using array of errors instead of throwing errors and check if it's not empty later in the code.... Exception handling is very confusing to me , I can not understand it's purpose ... can anybody enlighten me !?
they compare it with die() as better not to stop the execution of the code , why would I stop the execution of code if I don't want to !? ofcourse I do
I'm a beginner programmer , it might be confusing to you as well , or because i'm not very experienced in this ugly thing.
Please in the context of PHP only.
© Stack Overflow or respective owner