I have a custom error-handler class (actually it's an exception handler)
So, when an exception is thrown, then it'll be caught and stored in the error-handler class..
After all the execution, All the errors will be shown by the class..
Is it a good or bad practice ? Does it really hurt performance ?
terryds 0 Newbie Poster
Recommended Answers
Jump to PostI totally agree with it being bad. Bad if you allow your user to see it. Errors about your script, database, config file, ando other site related settings must be keep private and must be recorded in the log file.
Jump to PostExceptions can be very useful when you're devloping the code or handing it off to somebody else to extend - or even to store details in a log file. But as mentioned, they shouldn't really be used for general consumption. If you want to pass info to the user that …
All 6 Replies
marqusG 0 Newbie Poster
lorenzoDAlipio 24 Junior Poster in Training
veedeoo 474 Junior Poster Featured Poster

diafol
marqusG 0 Newbie Poster
matrixdevuk 71 6t9.me Founder
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.