Error Handling:die & trigger_error & throw exception: Oh My!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jeff00seattle
Forum Commoner
Posts: 66
Joined: Sat Feb 28, 2009 3:27 pm

Error Handling:die & trigger_error & throw exception: Oh My!

Post by jeff00seattle »

Hi

In PHP, there are many ways in handling user and run-time coding errors. I listed a few because I am not sure if there are even more:
  1. In PHP, are there yet more error handling functions\frameworks than what I have listed?
  2. Which error handler should I uses over others and why?
  3. Which error handler should I avoid over others and why?
  4. I am all about delivering code to be shared by other PHP programmers and I closely follow Pear's PHP coding standard. To be consistent with this standard (or standards), what error handler(s) should I use.
Thanks, I appreciate the feedback

Jeff in Seattle
Post Reply