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?