View Single Post
Old 06-27-2009, 10:55 AM   #1 (permalink)
Runar
The Contributor
 
Runar's Avatar
 
Join Date: Nov 2008
Location: Norway
Posts: 58
Thanks: 20
Runar is on a distinguished road
Default How do you handle your (custom) errors?

Good evening!

I am currently playing around with classes, interfaces and different programming patterns, and this question yet again came to my mind. How do you handle errors in your applications?

For the moment I am storing all errors in a simple array, $_Errors, then looping through all array elements if an error exists. But this does not feel quite right.

Does any of you have experience with a class to display and react to different types of errors? Should I go with PHPs native error handling functions, like trigger_error() and exceptions, instead of making my own methods?


Yours, Runar
Send a message via MSN to Runar
Runar is offline  
Reply With Quote