View Single Post
Old 02-27-2008, 11:16 PM   #7 (permalink)
wGEric
The Acquainted
 
wGEric's Avatar
 
Join Date: Nov 2007
Posts: 166
Thanks: 0
wGEric is on a distinguished road
Default

What about makes using exceptions better than using trigger_error or overwriting that with your own error handler using set_error_handler 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.
__________________
Eric
wGEric is offline  
Reply With Quote