exception vs die
View Single Post
02-27-2008, 11:16 PM
Join Date: Nov 2007
What about makes using exceptions better than using
or overwriting that with your own error handler using
or calling your own error function?
To me exceptions aren't worth it since you have to use try/catch blocks when I could just use a trigger_error or something similar right where I want the error to be spit out.
I guess if a function or something could return different types of errors then setting up multiple catch blocks would be good. But then again there's ways to do that without using exceptions.
View Public Profile
Send a private message to wGEric
Visit wGEric's homepage!
Find More Posts by wGEric